# HG changeset patch # User Mads Kiilerich # Date 1411561480 -7200 # Node ID 5f13634aa7bee445d29470b187e2423ca50ca091 # Parent 8cf1d694bda05ad355b3927560388fe1f0ab6c22 helpers: fix crash on new users without email (Issue #28) diff -r 8cf1d694bda0 -r 5f13634aa7be kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py Wed Sep 24 14:24:40 2014 +0200 +++ b/kallithea/lib/helpers.py Wed Sep 24 14:24:40 2014 +0200 @@ -496,6 +496,8 @@ def email_or_none(author): + if not author: + return None # extract email from the commit string _email = email(author) if _email: