From 6309168ff44307efd43135b42c9074f91b89a979 Mon Sep 17 00:00:00 2001 From: RenierM26 <66512715+RenierM26@users.noreply.github.com> Date: Mon, 15 Aug 2022 19:10:31 +0200 Subject: [PATCH] Fix really stupid logic error. --- pyhyypapi/client.py | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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',