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