Add check for KeyError on reading plugin commit (#6300)

* Add check for KeyError on reading plugin commit

* .

* .
This commit is contained in:
Lavissa 2024-01-21 20:56:08 +01:00 committed by GitHub
parent 428a4c0386
commit 917a88c6f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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