From bf893749b748f142199c9bce14fac44f8a661d6e Mon Sep 17 00:00:00 2001 From: mrlt8 <67088095+mrlt8@users.noreply.github.com> Date: Sun, 29 Sep 2024 17:42:05 -0700 Subject: [PATCH] Allow self-signed certificates #1354 (#1365) --- 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}")