mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
remove dead code
This commit is contained in:
parent
b1a3445338
commit
080ee2ea50
@ -53,7 +53,7 @@ class InvenTreePluginBase():
|
|||||||
else:
|
else:
|
||||||
return self.plugin_name()
|
return self.plugin_name()
|
||||||
|
|
||||||
def plugin_config(self, raise_error=False):
|
def plugin_config(self):
|
||||||
"""
|
"""
|
||||||
Return the PluginConfig object associated with this plugin
|
Return the PluginConfig object associated with this plugin
|
||||||
"""
|
"""
|
||||||
@ -68,9 +68,6 @@ class InvenTreePluginBase():
|
|||||||
except (OperationalError, ProgrammingError) as error:
|
except (OperationalError, ProgrammingError) as error:
|
||||||
cfg = None
|
cfg = None
|
||||||
|
|
||||||
if raise_error:
|
|
||||||
raise error
|
|
||||||
|
|
||||||
return cfg
|
return cfg
|
||||||
|
|
||||||
def is_active(self):
|
def is_active(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user