Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bcf81d commit c3454f0Copy full SHA for c3454f0
1 file changed
Lib/smtplib.py
@@ -250,6 +250,7 @@ def __init__(self, host='', port=0, local_hostname=None,
250
if host:
251
(code, msg) = self.connect(host, port)
252
if code != 220:
253
+ self.close()
254
raise SMTPConnectError(code, msg)
255
if local_hostname is not None:
256
self.local_hostname = local_hostname
0 commit comments