Explorar o código

celery.utils.mail: Fixed typo server -> client

Ask Solem %!s(int64=15) %!d(string=hai) anos
pai
achega
fd62a53320
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/utils/mail.py

+ 1 - 1
celery/utils/mail.py

@@ -37,7 +37,7 @@ class Mailer(object):
         client = smtplib.SMTP(self.host, self.port)
 
         if self.user and self.password:
-            server.login(self.user, self.password)
+            client.login(self.user, self.password)
 
         client.sendmail(message.sender, message.to, str(message))
         client.quit()