be a little 'softer' with errors

pull/1/head
Andrew Malota 2017-11-30 19:09:29 -06:00
rodzic 0673f9ea9d
commit 40bb54e521
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -234,7 +234,10 @@ class TempSensorReal(TempSensor):
def run(self):
while True:
self.temperature = self.thermocouple.get()
try:
self.temperature = self.thermocouple.get()
except Exception as ex:
log.error(ex, "problem reading temp")
time.sleep(self.time_step)