##// END OF EJS Templates
helpers: remove bad warning calls introduced in commit c8bec9b70fb9
marcink -
r416:502b7879 default
parent child Browse files
Show More
@@ -788,16 +788,14 b' def discover_user(author):'
788 def email_or_none(author):
788 def email_or_none(author):
789 # extract email from the commit string
789 # extract email from the commit string
790 _email = author_email(author)
790 _email = author_email(author)
791 log.warning('email_or_none author: %s' % (author))
792 log.warning('email_or_none _email: %s' % (_email))
793
791
794 # If we have an email, use it, otherwise
792 # If we have an email, use it, otherwise
795 # see if it contains a username we can get an email from
793 # see if it contains a username we can get an email from
796 if _email != '':
794 if _email != '':
797 return _email
795 return _email
798 else:
796 else:
799 user = User.get_by_username(author_name(author), case_insensitive=True,
797 user = User.get_by_username(
800 cache=True)
798 author_name(author), case_insensitive=True, cache=True)
801
799
802 if user is not None:
800 if user is not None:
803 return user.email
801 return user.email
General Comments 0
You need to be logged in to leave comments. Login now