Show More
@@ -71,9 +71,12 b' def _discover_legacy_plugins(config, pre' | |||||
71 | setting in database which are using the specified prefix. Normally 'py:' is |
|
71 | setting in database which are using the specified prefix. Normally 'py:' is | |
72 | used for the legacy plugins. |
|
72 | used for the legacy plugins. | |
73 | """ |
|
73 | """ | |
|
74 | try: | |||
74 | auth_plugins = SettingsModel().get_setting_by_name('auth_plugins') |
|
75 | auth_plugins = SettingsModel().get_setting_by_name('auth_plugins') | |
75 | enabled_plugins = auth_plugins.app_settings_value |
|
76 | enabled_plugins = auth_plugins.app_settings_value | |
76 | legacy_plugins = [id_ for id_ in enabled_plugins if id_.startswith(prefix)] |
|
77 | legacy_plugins = [id_ for id_ in enabled_plugins if id_.startswith(prefix)] | |
|
78 | except Exception: | |||
|
79 | legacy_plugins = [] | |||
77 |
|
80 | |||
78 | for plugin_id in legacy_plugins: |
|
81 | for plugin_id in legacy_plugins: | |
79 | log.debug('Legacy plugin discovered: "%s"', plugin_id) |
|
82 | log.debug('Legacy plugin discovered: "%s"', plugin_id) |
General Comments 0
You need to be logged in to leave comments.
Login now