]> granicus.if.org Git - python/commitdiff
SMTPError should be SMTPException; reported by Neal Norwitz.
authorFred Drake <fdrake@acm.org>
Sat, 13 Oct 2001 18:35:32 +0000 (18:35 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 13 Oct 2001 18:35:32 +0000 (18:35 +0000)
Lib/smtplib.py

index 8e9860805315dca6a2ff206cfabf9a572ac8a243..d8b18e9676d936b77caac965cdb0a3731ab94281 100755 (executable)
@@ -485,7 +485,7 @@ class SMTP:
                                   the helo greeting.
          SMTPAuthenticationError  The server didn't accept the username/
                                   password combination.
-         SMTPError                No suitable authentication method was
+         SMTPException            No suitable authentication method was
                                   found.
         """
 
@@ -537,7 +537,7 @@ class SMTP:
             (code, resp) = self.docmd("AUTH",
                 AUTH_PLAIN + " " + encode_plain(user, password))
         elif authmethod == None:
-            raise SMTPError("No suitable authentication method found.")
+            raise SMTPException("No suitable authentication method found.")
         if code not in [235, 503]:
             # 235 == 'Authentication successful'
             # 503 == 'Error: already authenticated'