Skip to content

Commit

Permalink
Add exception handling to riots dht for docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
sstenudd committed Sep 19, 2023
1 parent 65dafcd commit 3584b95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/riots-dht.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def update_thermostat():


while True:
update_thermostat()
time.sleep(10)
try:
update_thermostat()
time.sleep(10)
except:
print("An exception occurred")

0 comments on commit 3584b95

Please sign in to comment.