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:
Adam Waldenberg 2014-11-06 10:46:23 +01:00
parent fa5e5411f5
commit 1d2fd619bd
1 changed files with 4 additions and 1 deletions

View File

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