Make task_died work with no internet

This commit is contained in:
Tanner Collin 2024-02-08 20:32:15 +00:00
parent 8abb15cdd3
commit 34f0444de7

View File

@ -477,7 +477,10 @@ def task_died(future):
logging.error('Sensors server task died!')
else:
logging.error('Sensors server task died! Waiting 60s and exiting...')
controller_message('Sensors server task died! Waiting 60s and exiting...')
try:
controller_message('Sensors server task died! Waiting 60s and exiting...')
except: # we want this to succeed no matter what
pass
time.sleep(60)
exit()