forked from shaba/openuds
Added service initialization exceptio catch-and-retry
This commit is contained in:
parent
d30a3a5e4c
commit
539e96d264
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user