Skip to content

Commit

Permalink
use .get
Browse files Browse the repository at this point in the history
  • Loading branch information
RenierM26 committed Aug 16, 2021
1 parent 2981e80 commit a6c4c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyezviz/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def login(self):
if not self._token["session_id"]:
raise PyEzvizError(f"Relogin required: {req.text}")

if not self._token["service_urls"]:
if not self._token.get("service_urls"):
self._token["service_urls"] = self.get_service_urls()

return self._token
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='pyezviz',
version="0.1.9.0",
version="0.1.9.1",
license='Apache Software License 2.0',
author='Pierre Ourdouille',
author_email='[email protected]',
Expand Down

0 comments on commit a6c4c15

Please sign in to comment.