summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-06-11 20:18:56 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-06-11 20:18:56 (GMT)
commitb0557e729e07e63f36d91d1d631424616373a384 (patch)
tree37e065de80b5d6f5165e52c0b67ca4f6ed975cde /Lib/smtplib.py
parentaf51140fa0f475ed8050a938df6ce0db3c7d607a (diff)
parent46b32f307c48bcb999b22eebf65ffe8ed5cca544 (diff)
downloadcpython-b0557e729e07e63f36d91d1d631424616373a384.zip
cpython-b0557e729e07e63f36d91d1d631424616373a384.tar.gz
cpython-b0557e729e07e63f36d91d1d631424616373a384.tar.bz2
merge 3.4
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-xLib/smtplib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 4756973..dfbf5f9 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -773,6 +773,11 @@ class SMTP:
self.ehlo_resp = None
self.esmtp_features = {}
self.does_esmtp = 0
+ else:
+ # RFC 3207:
+ # 501 Syntax error (no parameters allowed)
+ # 454 TLS not available due to temporary reason
+ raise SMTPResponseException(resp, reply)
return (resp, reply)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[],