diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 98beca078..f6f8699a4 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -96,10 +96,9 @@ 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: - raise MoulinetteError(errno.EINVAL, - m18n.n('custom_appslist_name_required')) + elif name is None: + raise MoulinetteError(errno.EINVAL, + m18n.n('custom_appslist_name_required')) try: urlretrieve(url, '%s/%s.json' % (repo_path, name))