[fix] avoid returning None when an empty dict is expected

This commit is contained in:
Laurent Peuch 2018-07-28 22:05:29 +02:00
parent 1de1b43e2f
commit 4f73f1aed2

View file

@ -2018,6 +2018,7 @@ def _parse_args_from_manifest(manifest, action, args={}, auth=None):
action_args = manifest['arguments'][action] action_args = manifest['arguments'][action]
except KeyError: except KeyError:
logger.debug("no arguments found for '%s' in manifest", action) logger.debug("no arguments found for '%s' in manifest", action)
return OrderedDict()
else: else:
return _parse_action_args_in_yunohost_format(args, action_args, auth) return _parse_action_args_in_yunohost_format(args, action_args, auth)