From ab4618cfeadf78ed79e12a65fca862315324493a Mon Sep 17 00:00:00 2001 From: Samuli Stenudd Date: Tue, 19 Sep 2023 11:31:18 +0300 Subject: [PATCH] Update exception handling --- src/riots-dht.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/riots-dht.py b/src/riots-dht.py index c82cb6f..c4c9865 100644 --- a/src/riots-dht.py +++ b/src/riots-dht.py @@ -39,6 +39,6 @@ def update_thermostat(): try: time.sleep(10) update_thermostat() - except: - print("An exception occurred") + except ConnectionError: + print("ConnectionError occurred")