This commit is contained in:
Matthias 2021-11-22 01:36:37 +01:00
parent 1efdf16f92
commit 40dafb7fda
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -162,7 +162,6 @@ class Plugins:
:type disabled: str, optional
:raises error: IntegrationPluginError
"""
from plugin.helpers import log_plugin_error
from plugin.models import PluginConfig
logger.info('Starting plugin initialisation')
@ -189,7 +188,7 @@ class Plugins:
# check if the plugin was blocked -> threw an error
if disabled:
# option1: package, option2: file-based
if (plugin.__name__ == disabled) or (plugin.__module__==disabled):
if (plugin.__name__ == disabled) or (plugin.__module__ == disabled):
# errors are bad so disable the plugin in the database
# but only if not in testing mode as that breaks in the GH pipeline
if not settings.PLUGIN_TESTING: