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'
|
||||
description: 'A template chair part which is green'
|
||||
variant_of: 10000
|
||||
is_template: true
|
||||
category: 7
|
||||
trackable: true
|
||||
creation_date: '2030-01-01'
|
||||
|
@ -145,6 +145,8 @@ def get_git_log(path):
|
||||
datetime.datetime.fromtimestamp(commit.author_time).isoformat(),
|
||||
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:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user