From eb9865ff0e554e900db54a67f97dd3ff5d94a37e Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Tue, 23 Jul 2019 11:41:00 +0300 Subject: [PATCH] Handle multi-plugin files --- ckan/plugins/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/plugins/core.py b/ckan/plugins/core.py index 283538dec3c..9a95a42590e 100644 --- a/ckan/plugins/core.py +++ b/ckan/plugins/core.py @@ -114,7 +114,7 @@ def plugins_update(): # check and disable any that should not be active. for env in PluginGlobals.env.values(): for service, id_ in env.singleton_services.items(): - if service.__class__ not in _PLUGINS_CLASS: + if service not in _PLUGINS_CLASS: PluginGlobals.plugin_instances[id_].deactivate() # Reset CKAN to reflect the currently enabled extensions.