From 9cc9f65767218876bf48d739a8d88cc3608030b4 Mon Sep 17 00:00:00 2001 From: Thijs Raymakers Date: Thu, 29 May 2025 00:04:48 +0200 Subject: [PATCH] Do still print exception but only register on startup --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 5c5ff6f..2e90dec 100644 --- a/main.py +++ b/main.py @@ -65,7 +65,8 @@ def call(): # authorize guest after a certain amount of time unifi.authorize_guest(id, 1) - except: + except Exception as e: + print(f"Exception: {e}") sleep(5) def call_phone(hostname, acc):