From c3e4a5602170871ad846432a456b2aa95ab1db3e Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 22 Nov 2021 00:16:09 +0100 Subject: [PATCH] always reset plugin modules on collection --- InvenTree/plugin/registry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index 5db2bf0aca..9fcdb21a35 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -131,6 +131,8 @@ class Plugins: # region general plugin managment mechanisms def collect_plugins(self): """collect integration plugins from all possible ways of loading""" + self.plugin_modules = [] # clear + # Collect plugins from paths for plugin in settings.PLUGIN_DIRS: modules = inventree_plugins.get_plugins(importlib.import_module(plugin), IntegrationPluginBase, True)