Skip to content

Commit

Permalink
Update exception handling prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sstenudd committed Sep 19, 2023
1 parent ab4618c commit 2f66cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/riots-dht.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2f66cdb

Please sign in to comment.