From 87947c582d73ca486b6aaafa2e924b55258cf87e Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 21 Nov 2021 23:48:33 +0100 Subject: [PATCH] always log error --- 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 1b770948d2..6003316c6e 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -185,11 +185,10 @@ class Plugins: if plugin.__name__ == 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 + log_plugin_error({plug_key: 'Disabled'}, 'init') if not settings.PLUGIN_TESTING: plugin_db_setting.active = False # TODO save the error to the plugin - - log_plugin_error({plug_key: 'Disabled'}, 'init') plugin_db_setting.save() # add to inactive plugins so it shows up in the ui