mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-03-18 14:28:00 +01:00
Fixed a special and unique KeyError exception that could occur.
This is because of a mismatch between the changes module and the blame module. Seems to be triggered by empty rows in source files.
This commit is contained in:
parent
fa5e5411f5
commit
1d2fd619bd
1 changed files with 4 additions and 1 deletions
|
@ -75,7 +75,10 @@ class BlameThread(threading.Thread):
|
|||
continue
|
||||
|
||||
email = Blame.get_author_email(j)
|
||||
author = self.changes.get_latest_author_by_email(email)
|
||||
try:
|
||||
author = self.changes.get_latest_author_by_email(email)
|
||||
except KeyError:
|
||||
continue
|
||||
|
||||
__blame_lock__.acquire() # Global lock used to protect calls from here...
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue