فهرست منبع

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

Ask Solem 15 سال پیش
والد
کامیت
fd62a53320
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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()