Oops, actually fix the handling of mails without '@'.
This commit is contained in:
parent
48e0acd6fb
commit
576f887d59
4
gitstats
4
gitstats
@ -240,7 +240,9 @@ class GitDataCollector(DataCollector):
|
|||||||
author, mail = parts[4].split('<', 1)
|
author, mail = parts[4].split('<', 1)
|
||||||
author = author.rstrip()
|
author = author.rstrip()
|
||||||
mail = mail.rstrip('>')
|
mail = mail.rstrip('>')
|
||||||
domain = mail.rsplit('@', 1)[1]
|
domain = '?'
|
||||||
|
if mail.find('@') != -1:
|
||||||
|
domain = mail.rsplit('@', 1)[1]
|
||||||
date = datetime.datetime.fromtimestamp(float(stamp))
|
date = datetime.datetime.fromtimestamp(float(stamp))
|
||||||
|
|
||||||
# First and last commit stamp
|
# First and last commit stamp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user