From dc1b044ecc2a80cad5d00cbae2c66a01ed7fa4b1 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Tue, 31 Jan 2023 13:03:48 -0500 Subject: [PATCH] Update notifications.py --- scripts/utils/notifications.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/utils/notifications.py b/scripts/utils/notifications.py index 36e13ab..1e16cde 100644 --- a/scripts/utils/notifications.py +++ b/scripts/utils/notifications.py @@ -47,9 +47,11 @@ def sendAppriseNotifications(species, confidence, path, date, time, week, latitu try: if int(timeim.time()) - species_last_notified[comName] < int(APPRISE_MINIMUM_SECONDS_BETWEEN_NOTIFICATIONS_PER_SPECIES): return - except: + except Exception as e: + print("APPRISE NOTIFICATION EXCEPTION: "+str(e)) return + #TODO: this all needs to be changed, we changed the caddy default to allow direct IP access, so birdnetpi.local shouldn't be relied on anymore try: websiteurl = settings_dict.get('BIRDNETPI_URL') if len(websiteurl) == 0: