From 080ee2ea50a86480eb94f152b90d291b454ef0d4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Mar 2022 20:58:40 +0100 Subject: [PATCH] remove dead code --- InvenTree/plugin/plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/InvenTree/plugin/plugin.py b/InvenTree/plugin/plugin.py index 9abbcc041e..dce0a1b14b 100644 --- a/InvenTree/plugin/plugin.py +++ b/InvenTree/plugin/plugin.py @@ -53,7 +53,7 @@ class InvenTreePluginBase(): else: return self.plugin_name() - def plugin_config(self, raise_error=False): + def plugin_config(self): """ Return the PluginConfig object associated with this plugin """ @@ -68,9 +68,6 @@ class InvenTreePluginBase(): except (OperationalError, ProgrammingError) as error: cfg = None - if raise_error: - raise error - return cfg def is_active(self):