Added service initialization exceptio catch-and-retry

This commit is contained in:
Adolfo Gómez García 2021-06-21 15:28:24 +02:00
parent d30a3a5e4c
commit 539e96d264

View File

@ -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()