mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
apps: don't attempt to del password key if it doesn't exist
This commit is contained in:
parent
48ee78afa2
commit
29338f79bc
1 changed files with 2 additions and 1 deletions
|
@ -1209,7 +1209,8 @@ def app_install(
|
|||
for question in questions:
|
||||
# Or should it be more generally question.redact ?
|
||||
if question.type == "password":
|
||||
del env_dict_for_logging[f"YNH_APP_ARG_{question.name.upper()}"]
|
||||
if f"YNH_APP_ARG_{question.name.upper()}" in env_dict_for_logging:
|
||||
del env_dict_for_logging[f"YNH_APP_ARG_{question.name.upper()}"]
|
||||
if question.name in env_dict_for_logging:
|
||||
del env_dict_for_logging[question.name]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue