be a little 'softer' with errors

This commit is contained in:
Andrew Malota 2017-11-30 19:09:29 -06:00
parent 0673f9ea9d
commit 40bb54e521

View File

@ -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)