be a little 'softer' with errors
This commit is contained in:
parent
0673f9ea9d
commit
40bb54e521
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user