From 0f321b8e83d650d9d40bc7ef8342a465f1a185d1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 17 Nov 2021 02:03:03 +0100 Subject: [PATCH] turns out we needed that --- InvenTree/plugin/apps.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/plugin/apps.py b/InvenTree/plugin/apps.py index 739c207b54..b4f2d572ee 100644 --- a/InvenTree/plugin/apps.py +++ b/InvenTree/plugin/apps.py @@ -298,9 +298,11 @@ class PluginAppConfig(AppConfig): # remove plugin from installed_apps for plugin in settings.INTEGRATION_APPS_PATHS: - settings.INSTALLED_APPS.remove(plugin) + if plugin in settings.INSTALLED_APPS: + settings.INSTALLED_APPS.remove(plugin) # reset load flag and reload apps + settings.INTEGRATION_APPS_PATHS = [] settings.INTEGRATION_APPS_LOADED = False self._reload_apps()