From 3a7294ed029b7d2b8375cc8fcf6a5d3ee097f08d Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Sat, 13 Dec 2014 22:14:45 +0100 Subject: [PATCH] Update app.py --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 8e2c0f17b..262fd5711 100644 --- a/app.py +++ b/app.py @@ -284,8 +284,9 @@ def app_upgrade(auth, app=[], url=None, file=None): upgraded_apps = [] # If no app is specified, upgrade all apps - if not app and (not url or file): - app = os.listdir(apps_setting_path) + if not app: + if (not url and not file): + app = os.listdir(apps_setting_path) elif not isinstance(app, list): app = [ app ]