From e32ea4180aef6c89972fa95715d5a8a724f9b22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Mon, 20 Oct 2014 12:21:26 +0200 Subject: [PATCH] [fix] Raise if the requested app to install is unknown --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 62e3e8d5b..0f1e6bc78 100644 --- a/app.py +++ b/app.py @@ -392,8 +392,10 @@ def app_install(auth, app, label=None, args=None): if app in app_list(raw=True) or ('@' in app) or ('http://' in app) or ('https://' in app): manifest = _fetch_app_from_git(app) - else: + elif os.path.exists(app): manifest = _extract_app_from_file(app) + else: + raise MoulinetteError(errno.EINVAL, m18n.n('app_unknown')) # Check ID if 'id' not in manifest or '__' in manifest['id']: