From f0d829098c6e502f5bd37c285dd0e4d2d275d5d3 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 11 Oct 2016 14:53:54 +0200 Subject: [PATCH] [mod] app_dict can't be None (exception is raised instead) --- src/yunohost/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 68e1596e1..8194892fb 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -371,7 +371,7 @@ def app_upgrade(auth, app=[], url=None, file=None): manifest, extracted_app_folder = _extract_app_from_file(file) elif url: manifest, extracted_app_folder = _fetch_app_from_git(url) - elif app_dict is None or 'lastUpdate' not in app_dict or 'git' not in app_dict: + elif 'lastUpdate' not in app_dict or 'git' not in app_dict: logger.warning(m18n.n('custom_app_url_required', app=app_instance_name)) continue elif app_dict['lastUpdate'] > locale_update_time: