mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Raise if the requested app to install is unknown
This commit is contained in:
parent
ce5be021d3
commit
e32ea4180a
1 changed files with 3 additions and 1 deletions
4
app.py
4
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']:
|
||||
|
|
Loading…
Add table
Reference in a new issue