From b48bea14d23d673260bd861ee6811cf16ef51c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 29 May 2020 04:48:14 +0200 Subject: [PATCH] Now ensures setReady does not steals, on error, the machine to the user --- server/src/uds/core/managers/user_service.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/src/uds/core/managers/user_service.py b/server/src/uds/core/managers/user_service.py index 6f10c323..4fa28567 100644 --- a/server/src/uds/core/managers/user_service.py +++ b/server/src/uds/core/managers/user_service.py @@ -419,7 +419,12 @@ class UserServiceManager: logger.debug('Service %s is usable, checking it via setReady', userService) userServiceInstance = userService.getInstance() - state = userServiceInstance.setReady() + try: + state = userServiceInstance.setReady() + except Exception as e: + logger.warn('Could not check readyness of %s: %s', userService, e) + return False + logger.debug('State: %s', state) if state == State.FINISHED: