From f49800d5b88330e19a719dfe27ff2dd434e6ffbf Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 4 Nov 2021 14:54:15 +0100 Subject: [PATCH] make attr - test safer --- InvenTree/plugin/integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/plugin/integration.py b/InvenTree/plugin/integration.py index 10b3a3a0a6..b5b84b6ed0 100644 --- a/InvenTree/plugin/integration.py +++ b/InvenTree/plugin/integration.py @@ -356,7 +356,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin): def set_package(self): """add packaging info of the plugins into plugins context""" - package = self.get_package_metadata() if self.is_package else self.get_package_commit() + package = self.get_package_metadata() if getattr(self, 'is_package', False) else self.get_package_commit() # process date if package.get('date'):