mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add check for KeyError on reading plugin commit (#6300)
* Add check for KeyError on reading plugin commit * . * .
This commit is contained in:
parent
428a4c0386
commit
917a88c6f4
@ -181,6 +181,7 @@
|
|||||||
name: 'Green chair'
|
name: 'Green chair'
|
||||||
description: 'A template chair part which is green'
|
description: 'A template chair part which is green'
|
||||||
variant_of: 10000
|
variant_of: 10000
|
||||||
|
is_template: true
|
||||||
category: 7
|
category: 7
|
||||||
trackable: true
|
trackable: true
|
||||||
creation_date: '2030-01-01'
|
creation_date: '2030-01-01'
|
||||||
|
@ -145,6 +145,8 @@ def get_git_log(path):
|
|||||||
datetime.datetime.fromtimestamp(commit.author_time).isoformat(),
|
datetime.datetime.fromtimestamp(commit.author_time).isoformat(),
|
||||||
commit.message.decode().split('\n')[0],
|
commit.message.decode().split('\n')[0],
|
||||||
]
|
]
|
||||||
|
except KeyError as err:
|
||||||
|
logger.debug('No HEAD tag found in git repo at path %s', path)
|
||||||
except NotGitRepository:
|
except NotGitRepository:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user