fix module and parameter names colision

This commit is contained in:
Serghei Mihai 2016-04-14 17:25:10 +02:00
parent d7d78c7491
commit 9fe6803bfc
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ def send_mail(to, subject, message):
s.quit()
def create_ticket(email):
mail = email.message_from_string(email)
def create_ticket(mail):
mail = email.message_from_string(mail)
r = Redmine(REDMINE_URL, key=REDMINE_KEY)
from_name, from_email = email.utils.parseaddr(mail['From'])
users = r.user.filter(name=from_email)