Handle unexpected errors...

This commit is contained in:
Alexandre Aubin 2019-01-17 20:15:18 +00:00
parent 442bd8c3e4
commit 836083a62e

View file

@ -675,6 +675,10 @@ def _run_service_command(action, service):
logger.warning(m18n.n('service_cmd_exec_failed', command=cmd))
return False
except Exception as e:
logger.warning(m18n.n("unexpected_error", error=str(e)))
return False
finally:
# Remove the lock if one was given
if need_lock and PID != 0: