From c25d099f0c6752fa8074a27b1ea49e957ea9d821 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Fri, 29 Dec 2023 22:50:13 +0100 Subject: [PATCH] Improved exception handling --- src/actions.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/actions.py b/src/actions.py index 2d3110e..25790a9 100644 --- a/src/actions.py +++ b/src/actions.py @@ -53,10 +53,7 @@ async def log_temperature(): async def display_time(): while True: - try: - matrix_display.show_current_time() - except Exception as e: - raise "Failed to display time on the matrix display: {e}" + matrix_display.show_current_time() seconds_until_next_minute = 60 - datetime.now().second await asyncio.sleep(seconds_until_next_minute)