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)