mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
This commit is contained in:
parent
9bcf81da14
commit
c3454f0e79
1 changed files with 1 additions and 0 deletions
|
@ -250,6 +250,7 @@ class SMTP:
|
|||
if host:
|
||||
(code, msg) = self.connect(host, port)
|
||||
if code != 220:
|
||||
self.close()
|
||||
raise SMTPConnectError(code, msg)
|
||||
if local_hostname is not None:
|
||||
self.local_hostname = local_hostname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue