mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] simplify code
This commit is contained in:
parent
97128d7d63
commit
2aab7bdf1b
1 changed files with 3 additions and 4 deletions
|
@ -96,8 +96,7 @@ def app_fetchlist(url=None, name=None):
|
||||||
if url is None:
|
if url is None:
|
||||||
url = 'https://app.yunohost.org/official.json'
|
url = 'https://app.yunohost.org/official.json'
|
||||||
name = 'yunohost'
|
name = 'yunohost'
|
||||||
else:
|
elif name is None:
|
||||||
if name is None:
|
|
||||||
raise MoulinetteError(errno.EINVAL,
|
raise MoulinetteError(errno.EINVAL,
|
||||||
m18n.n('custom_appslist_name_required'))
|
m18n.n('custom_appslist_name_required'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue