From 08fe4aca5ac3ab050c174cc5005e9e2389165a84 Mon Sep 17 00:00:00 2001 From: mrlt8 <67088095+mrlt8@users.noreply.github.com> Date: Tue, 19 Sep 2023 07:05:48 -0700 Subject: [PATCH] Catch other HTTPErrors for events --- app/wyzebridge/wyze_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/wyzebridge/wyze_api.py b/app/wyzebridge/wyze_api.py index 7ef3c45f..761efa83 100644 --- a/app/wyzebridge/wyze_api.py +++ b/app/wyzebridge/wyze_api.py @@ -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):