mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Allow no arguments in manifest
This commit is contained in:
parent
494ce814d3
commit
5645737509
1 changed files with 2 additions and 2 deletions
|
@ -113,8 +113,8 @@ def hook_check(file):
|
|||
raise YunoHostError(22, _("Invalid app package"))
|
||||
|
||||
action = file[file.index('scripts/') + 8:]
|
||||
if action in manifest["arguments"]:
|
||||
return manifest["arguments"][action]
|
||||
if 'arguments' in manifest and action in manifest['arguments']:
|
||||
return manifest['arguments'][action]
|
||||
else:
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue