mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Handle unexpected errors...
This commit is contained in:
parent
442bd8c3e4
commit
836083a62e
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue