From 539e96d264cd4e795823626a8519fd189d0e9751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 21 Jun 2021 15:28:24 +0200 Subject: [PATCH] Added service initialization exceptio catch-and-retry --- actor/src/udsactor/service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actor/src/udsactor/service.py b/actor/src/udsactor/service.py index a180231c..d1549bf4 100644 --- a/actor/src/udsactor/service.py +++ b/actor/src/udsactor/service.py @@ -299,6 +299,9 @@ class CommonService: # pylint: disable=too-many-instance-attributes except rest.RESTError as e: # Invalid key? logger.error('Error validating with broker. (Invalid token?): {}'.format(e)) return False + except Exception: + logger.exception() + self.doWait(5000) # Wait a bit and retry... return self.configureMachine()