Skip to content
Snippets Groups Projects
Commit 68873bf6 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

BaseUtils: fix none error

parent 3dddb397
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,8 @@ class NtfyHelper:
'Authorization': f'Basic {base64Encoded.decode("utf-8")}',
'Tags': ','.join(tags)
}
baseHeaders.update(headers)
if headers is not None:
baseHeaders.update(headers)
response = requests.post(f'{baseUrl}/{topicName}', data=message, headers=baseHeaders)
response.raise_for_status()
......@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='TheCodeLabs-BaseUtils',
packages=['TheCodeLabs_BaseUtils'],
version='1.8.0',
version='1.8.1',
license='MIT',
description='Useful python classes',
author='TheCodeLabs',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment