diff --git a/src/backend/InvenTree/plugin/plugin.py b/src/backend/InvenTree/plugin/plugin.py index 7e977ec0ff..9edc5a2696 100644 --- a/src/backend/InvenTree/plugin/plugin.py +++ b/src/backend/InvenTree/plugin/plugin.py @@ -442,15 +442,15 @@ class InvenTreePlugin(VersionMixin, MixinBase, MetaBase): try: website = meta['Project-URL'].split(', ')[1] - except (ValueError, IndexError, AttributeError): - website = meta['Project-URL'] + except Exception: + website = meta.get('Project-URL') return { - 'author': meta['Author-email'], - 'description': meta['Summary'], - 'version': meta['Version'], + 'author': meta.get('Author-email'), + 'description': meta.get('Summary'), + 'version': meta.get('Version'), 'website': website, - 'license': meta['License'], + 'license': meta.get('License'), } def define_package(self):