From 42b593f7f3ac62cf8d60572def3ea61ccf9da122 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Mon, 6 May 2024 23:00:02 +0200 Subject: [PATCH] Added exception logging --- src/endpoints/handlers/bett.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endpoints/handlers/bett.py b/src/endpoints/handlers/bett.py index 1c5d12e..5f9941a 100644 --- a/src/endpoints/handlers/bett.py +++ b/src/endpoints/handlers/bett.py @@ -151,6 +151,6 @@ async def log_bed_weights(): add_weights_to_log(tl, tr, bl, br) check_for_change() - except: - pass + except Exception as ex: + logging.exception(ex) await asyncio.sleep(1)