From 9b468ba92e8f67cf9da2c127248f0ac72258a3e3 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 31 Dec 2021 15:20:32 +1100 Subject: [PATCH] Second fix for the first fix --- InvenTree/plugin/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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