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