[fix] Raise if the requested app to install is unknown

This commit is contained in:
Jérôme Lebleu 2014-10-20 12:21:26 +02:00
parent ce5be021d3
commit e32ea4180a

4
app.py
View file

@ -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']: