Skip to content

Commit

Permalink
Fix logic error.
Browse files Browse the repository at this point in the history
  • Loading branch information
RenierM26 committed Oct 1, 2022
1 parent 6309168 commit 7a34a06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions pyhyypapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
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.7",
version="0.0.0.8",
license='Apache Software License 2.0',
author='Renier Moorcroft',
author_email='[email protected]',
Expand Down

0 comments on commit 7a34a06

Please sign in to comment.