Skip to content

Commit

Permalink
Catch other HTTPErrors for events
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Sep 19, 2023
1 parent 1349159 commit 08fe4ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/wyzebridge/wyze_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ def get_events(self, macs: Optional[list] = None, last_ts: int = 0):
except RateLimitError as ex:
logger.error(f"[EVENTS] RateLimitError: {ex}, cooling down.")
return ex.reset_by, []
except HTTPError as ex:
logger.error(f"[EVENTS] HTTPError: {ex}, cooling down.")
return time() + 60, []

@authenticated
def set_device_info(self, cam: WyzeCamera, params: dict):
Expand Down

0 comments on commit 08fe4ac

Please sign in to comment.