mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Set empty app argument value only when it's None
This commit is contained in:
parent
9f02b8b8af
commit
f7add32acb
1 changed files with 1 additions and 1 deletions
|
@ -1537,7 +1537,7 @@ def _parse_args_from_manifest(manifest, action, args={}, auth=None):
|
||||||
and not arg.get('optional', False):
|
and not arg.get('optional', False):
|
||||||
raise MoulinetteError(errno.EINVAL,
|
raise MoulinetteError(errno.EINVAL,
|
||||||
m18n.n('app_argument_required', name=arg_name))
|
m18n.n('app_argument_required', name=arg_name))
|
||||||
elif not arg_value:
|
elif arg_value is None:
|
||||||
args_dict[arg_name] = ''
|
args_dict[arg_name] = ''
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue