##// 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 788 def email_or_none(author):
789 789 # extract email from the commit string
790 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 792 # If we have an email, use it, otherwise
795 793 # see if it contains a username we can get an email from
796 794 if _email != '':
797 795 return _email
798 796 else:
799 user = User.get_by_username(author_name(author), case_insensitive=True,
800 cache=True)
797 user = User.get_by_username(
798 author_name(author), case_insensitive=True, cache=True)
801 799
802 800 if user is not None:
803 801 return user.email
General Comments 0
You need to be logged in to leave comments. Login now