From 2aab7bdf1bcc6f025c7c5bf618d0402439abd0f4 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 12 Jun 2016 00:44:25 +0200 Subject: [PATCH] [mod] simplify code --- src/yunohost/app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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))