ソースを参照

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

Heikki Hokkanen 16 年 前
コミット
576f887d59
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  1. 3
    1
      gitstats

+ 3
- 1
gitstats ファイルの表示

@@ -240,7 +240,9 @@ class GitDataCollector(DataCollector):
240 240
 			author, mail = parts[4].split('<', 1)
241 241
 			author = author.rstrip()
242 242
 			mail = mail.rstrip('>')
243
-			domain = mail.rsplit('@', 1)[1]
243
+			domain = '?'
244
+			if mail.find('@') != -1:
245
+				domain = mail.rsplit('@', 1)[1]
244 246
 			date = datetime.datetime.fromtimestamp(float(stamp))
245 247
 
246 248
 			# First and last commit stamp