mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Do not fail at fetching list when not connected
This commit is contained in:
parent
cdc777671d
commit
c58fb7342a
1 changed files with 6 additions and 1 deletions
7
app.py
7
app.py
|
@ -869,7 +869,12 @@ def app_ssowatconf(auth):
|
||||||
redirected_regex = { main_domain +'/yunohost[\/]?$': 'https://'+ main_domain +'/yunohost/sso/' }
|
redirected_regex = { main_domain +'/yunohost[\/]?$': 'https://'+ main_domain +'/yunohost/sso/' }
|
||||||
|
|
||||||
apps = {}
|
apps = {}
|
||||||
for app in app_list()['apps']:
|
try:
|
||||||
|
apps_list = app_list()['apps']
|
||||||
|
except:
|
||||||
|
apps_list = []
|
||||||
|
|
||||||
|
for app in apps_list:
|
||||||
if _is_installed(app['id']):
|
if _is_installed(app['id']):
|
||||||
with open(apps_setting_path + app['id'] +'/settings.yml') as f:
|
with open(apps_setting_path + app['id'] +'/settings.yml') as f:
|
||||||
app_settings = yaml.load(f)
|
app_settings = yaml.load(f)
|
||||||
|
|
Loading…
Add table
Reference in a new issue