Skip to content

Commit

Permalink
Handle http status codes 401 or 504
Browse files Browse the repository at this point in the history
  • Loading branch information
RenierM26 committed Mar 8, 2021
1 parent 75aea92 commit f6b36ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyezviz/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def get_alarminfo(self, serial, max_retries=0):
req.raise_for_status()

except requests.HTTPError as err:
if err.response.status_code == 401 or 501:
if err.response.status_code == 401 or 504:
# session is wrong, need to relogin
self.login()
logging.info(
Expand Down

0 comments on commit f6b36ed

Please sign in to comment.