mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix plugin meta lookup (#4684)
* fix website lookup * use the raw data on error
This commit is contained in:
parent
5411cf0878
commit
d7bdcd95a6
@ -364,11 +364,16 @@ class InvenTreePlugin(VersionMixin, MixinBase, MetaBase):
|
||||
# Not much information we can extract at this point
|
||||
return {}
|
||||
|
||||
try:
|
||||
website = meta['Project-URL'].split(', ')[1]
|
||||
except [ValueError, IndexError]:
|
||||
website = meta['Project-URL']
|
||||
|
||||
return {
|
||||
'author': meta['Author-email'],
|
||||
'description': meta['Summary'],
|
||||
'version': meta['Version'],
|
||||
'website': meta['Project-URL'],
|
||||
'website': website,
|
||||
'license': meta['License']
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user