helpers: remove bad warning calls introduced in commit c8bec9b70fb9

This commit is contained in:
Marcin Kuzminski 2016-07-11 17:30:23 +02:00
parent 1290cf5e89
commit 2f3c764642

View file

@ -788,16 +788,14 @@ def discover_user(author):
def email_or_none(author):
# extract email from the commit string
_email = author_email(author)
log.warning('email_or_none author: %s' % (author))
log.warning('email_or_none _email: %s' % (_email))
# If we have an email, use it, otherwise
# see if it contains a username we can get an email from
if _email != '':
return _email
else:
user = User.get_by_username(author_name(author), case_insensitive=True,
cache=True)
user = User.get_by_username(
author_name(author), case_insensitive=True, cache=True)
if user is not None:
return user.email