diff --git a/InvenTree/plugin/models.py b/InvenTree/plugin/models.py index 811ed5b431..93c6335497 100644 --- a/InvenTree/plugin/models.py +++ b/InvenTree/plugin/models.py @@ -55,9 +55,9 @@ class PluginConfig(models.Model): # extra attributes from the registry def mixins(self): - if self.plugin: + try: return self.plugin._mixinreg - else: + except (AttributeError, ValueError): return {} # functions