fix sleep ignored if there is an exception

This commit is contained in:
Florian Bezannier
2021-09-24 23:49:11 +02:00
parent ed0c42228e
commit 97c136ca15
+1 -1
View File
@@ -174,9 +174,9 @@ class MyPSACC:
self.get_vehicle_info(car.vin)
for callback in self.info_callback:
callback()
sleep(self.info_refresh_rate)
except: # pylint: disable=bare-except
logger.exception("refresh_vehicle_info: ")
sleep(self.info_refresh_rate)
def start_refresh_thread(self):
if self.refresh_thread is None: