From 34f0444de7e3aca130ec9fab96c27b87516bf06b Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 8 Feb 2024 20:32:15 +0000 Subject: [PATCH] Make task_died work with no internet --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index e638a40..39fad30 100644 --- a/main.py +++ b/main.py @@ -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()