Skip to content

Commit

Permalink
Update exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sstenudd committed Sep 19, 2023
1 parent 9685fe4 commit ab4618c
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:
print("An exception occurred")
except ConnectionError:
print("ConnectionError occurred")

0 comments on commit ab4618c

Please sign in to comment.