diff --git a/pyhyypapi/client.py b/pyhyypapi/client.py index d3c407c..7c149a4 100644 --- a/pyhyypapi/client.py +++ b/pyhyypapi/client.py @@ -178,7 +178,10 @@ def site_notifications( f"Error getting site notifications from api: {_json_result['error']}" ) - if not json_key or _json_result["listSiteNotifications"][str(site_id)] is None: + if ( + json_key is None + or _json_result["listSiteNotifications"][str(site_id)] is None + ): return _json_result["listSiteNotifications"][str(site_id)] return _json_result["listSiteNotifications"][str(site_id)][json_key] diff --git a/setup.py b/setup.py index 9adf4a4..c57c0c7 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='pyhyypapi', - version="0.0.0.6", + version="0.0.0.7", license='Apache Software License 2.0', author='Renier Moorcroft', author_email='renierm26@users.github.com',