From 40dafb7fdaef4a0f2bd7dd9828c1baeb4b018abf Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 22 Nov 2021 01:36:37 +0100 Subject: [PATCH] PEP fix --- InvenTree/plugin/registry.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index 6d96018d36..2cdc266a01 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -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: