helpers: remove bad warning calls introduced in commit c8bec9b70fb9
This commit is contained in:
parent
1290cf5e89
commit
2f3c764642
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue