mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update src/yunohost/app.py
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
0d702ed31c
commit
e15763f97b
1 changed files with 2 additions and 3 deletions
|
@ -1669,10 +1669,9 @@ def app_action_run(operation_logger, app, action, args=None):
|
||||||
chdir=cwd,
|
chdir=cwd,
|
||||||
user=action_declaration.get("user", "root"),
|
user=action_declaration.get("user", "root"),
|
||||||
)[0]
|
)[0]
|
||||||
# Here again, calling hook_exec could fail miserably, or get
|
# Calling hook_exec could fail miserably, or get
|
||||||
# manually interrupted (by mistake or because script was stuck)
|
# manually interrupted (by mistake or because script was stuck)
|
||||||
# In that case we still want to proceed with the rest of the
|
# In that case we still want to delete the tmp work dir
|
||||||
# removal (permissions, /etc/yunohost/apps/{app} ...)
|
|
||||||
except (KeyboardInterrupt, EOFError, Exception):
|
except (KeyboardInterrupt, EOFError, Exception):
|
||||||
retcode = -1
|
retcode = -1
|
||||||
import traceback
|
import traceback
|
||||||
|
|
Loading…
Add table
Reference in a new issue