mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
mail-aliases key only exists if it's not empty?
This commit is contained in:
parent
50f68e2886
commit
bfa0f304aa
1 changed files with 1 additions and 1 deletions
|
@ -2567,7 +2567,7 @@ def _parse_args_in_yunohost_format(user_answers, argument_questions):
|
|||
|
||||
root_mail = "root@%s" % _get_maindomain()
|
||||
for user in users.keys():
|
||||
if root_mail in user_info(user)["mail-aliases"]:
|
||||
if root_mail in user_info(user).get("mail-aliases", []):
|
||||
question_default = user
|
||||
break
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue