From 58bbd9d5233cde6aa4cfc74c05c208ceb3342df5 Mon Sep 17 00:00:00 2001 From: mrlt8 <67088095+mrlt8@users.noreply.github.com> Date: Sun, 15 Sep 2024 19:00:44 -0700 Subject: [PATCH] Allow self-signed certificates #1354 --- app/wyzebridge/webhooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/wyzebridge/webhooks.py b/app/wyzebridge/webhooks.py index 799e5556..abe5e921 100644 --- a/app/wyzebridge/webhooks.py +++ b/app/wyzebridge/webhooks.py @@ -21,7 +21,7 @@ def send_webhook(event: str, camera: str, msg: str, img: Optional[str] = None) - logger.debug(f"[WEBHOOKS] 📲 Triggering {event.upper()} event for {camera}") try: - resp = requests.post(url, headers=header, data=msg) + resp = requests.post(url, headers=header, data=msg, verify=False) resp.raise_for_status() - except requests.exceptions.HTTPError as ex: + except Exception as ex: print(f"[WEBHOOKS] {ex}")