Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RenierM26 committed Mar 11, 2021
1 parent 742c028 commit 39e2b0c
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 @@ -683,7 +683,7 @@ def api_set_defence_mode(self, mode: DefenseModeType, max_retries=0):
if err.response.status_code == 401 or 504:
# session is wrong, need to relogin
self.login()
return self.api_set_defence_mode(DefenseModeType, max_retries + 1)
return self.api_set_defence_mode(mode, max_retries + 1)

raise requests.HTTPError(err)

Expand Down

0 comments on commit 39e2b0c

Please sign in to comment.