From 9b873b0ed51f6cb1f68f7c9b47172f4f873030cf Mon Sep 17 00:00:00 2001 From: titoko Date: Wed, 4 Dec 2013 22:24:12 +0100 Subject: [PATCH] Update yunohost_app.py bug fix --- yunohost_app.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/yunohost_app.py b/yunohost_app.py index 956884d4..68de6fe7 100644 --- a/yunohost_app.py +++ b/yunohost_app.py @@ -691,11 +691,12 @@ def app_ssowatconf(): skipped_uri=[] apps={} - for app in app_list()['Apps']: - with open(apps_setting_path + app['ID'] +'/settings.yml') as f: - app_settings = yaml.load(f) - if 'skipped_uris' in app_settings: - skipped_uri=[app_settings['domain'] + app_settings['path'][:-1] + item for item in app_settings['skipped_uris'].split(',')] + for app in app_list()['Apps']: + if _is_installed(app['ID']): + with open(apps_setting_path + app['ID'] +'/settings.yml') as f: + app_settings = yaml.load(f) + if 'skipped_uris' in app_settings: + skipped_uri=[app_settings['domain'] + app_settings['path'][:-1] + item for item in app_settings['skipped_uris'].split(',')] for domain in domains: skipped_uri.extend([domain +'/ynhadmin', domain +'/ynhapi'])