mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge branch 'dev' into refactoring-yunohost-format-arguments-parsing
This commit is contained in:
commit
864a186862
1 changed files with 1 additions and 1 deletions
|
@ -2687,7 +2687,7 @@ class UserArgumentParser(YunoHostArgumentFormatParser):
|
|||
if question.default is None:
|
||||
root_mail = "root@%s" % _get_maindomain()
|
||||
for user in question.choices.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