[mod] simplify code

This commit is contained in:
Laurent Peuch 2016-06-12 00:44:25 +02:00
parent 97128d7d63
commit 2aab7bdf1b

View file

@ -96,8 +96,7 @@ def app_fetchlist(url=None, name=None):
if url is None:
url = 'https://app.yunohost.org/official.json'
name = 'yunohost'
else:
if name is None:
elif name is None:
raise MoulinetteError(errno.EINVAL,
m18n.n('custom_appslist_name_required'))