Oops, actually fix the handling of mails without '@'.

This commit is contained in:
Heikki Hokkanen 2010-01-15 22:40:14 +02:00
parent 48e0acd6fb
commit 576f887d59

View File

@ -240,7 +240,9 @@ class GitDataCollector(DataCollector):
author, mail = parts[4].split('<', 1)
author = author.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))
# First and last commit stamp