make attr - test safer

This commit is contained in:
Matthias 2021-11-04 14:54:15 +01:00
parent 1ac51afd27
commit f49800d5b8
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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'):