From 2f66cdb1fafeef98270cbba8386c47aabaa692a9 Mon Sep 17 00:00:00 2001 From: Samuli Stenudd Date: Tue, 19 Sep 2023 11:39:33 +0300 Subject: [PATCH] Update exception handling prints --- 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 c4c9865..cdb90fe 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 ConnectionError: - print("ConnectionError occurred") + except requests.exceptions.ConnectionError as error: + print(error)