Skip to content

Commit

Permalink
Fix really stupid logic error.
Browse files Browse the repository at this point in the history
  • Loading branch information
RenierM26 committed Aug 15, 2022
1 parent 91b177f commit 6309168
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pyhyypapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
Expand Down

0 comments on commit 6309168

Please sign in to comment.