##// END OF EJS Templates
setup: catch and don't stop on any exception in fetching the legacy plugins.
marcink -
r2649:1e0ee304 default
parent child Browse files
Show More
@@ -71,9 +71,12 b' def _discover_legacy_plugins(config, pre'
71 71 setting in database which are using the specified prefix. Normally 'py:' is
72 72 used for the legacy plugins.
73 73 """
74 auth_plugins = SettingsModel().get_setting_by_name('auth_plugins')
75 enabled_plugins = auth_plugins.app_settings_value
76 legacy_plugins = [id_ for id_ in enabled_plugins if id_.startswith(prefix)]
74 try:
75 auth_plugins = SettingsModel().get_setting_by_name('auth_plugins')
76 enabled_plugins = auth_plugins.app_settings_value
77 legacy_plugins = [id_ for id_ in enabled_plugins if id_.startswith(prefix)]
78 except Exception:
79 legacy_plugins = []
77 80
78 81 for plugin_id in legacy_plugins:
79 82 log.debug('Legacy plugin discovered: "%s"', plugin_id)
General Comments 0
You need to be logged in to leave comments. Login now