Update src/yunohost/app.py

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
Kayou 2021-09-14 19:11:05 +02:00 committed by GitHub
parent 0d702ed31c
commit e15763f97b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1669,10 +1669,9 @@ def app_action_run(operation_logger, app, action, args=None):
chdir=cwd,
user=action_declaration.get("user", "root"),
)[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)
# In that case we still want to proceed with the rest of the
# removal (permissions, /etc/yunohost/apps/{app} ...)
# In that case we still want to delete the tmp work dir
except (KeyboardInterrupt, EOFError, Exception):
retcode = -1
import traceback