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