Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3b69824d
Commit
3b69824d
authored
Dec 17, 2012
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Plain Diff
Issue #16647: save socket error details in LMTP.connect()
Patch by Serhiy Storchaka.
parents
896cb15d
b6693c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/smtplib.py
Lib/smtplib.py
+2
-2
No files found.
Lib/smtplib.py
View file @
3b69824d
...
...
@@ -920,13 +920,13 @@ class LMTP(SMTP):
self
.
sock
=
socket
.
socket
(
socket
.
AF_UNIX
,
socket
.
SOCK_STREAM
)
self
.
file
=
None
self
.
sock
.
connect
(
host
)
except
socket
.
error
as
msg
:
except
socket
.
error
:
if
self
.
debuglevel
>
0
:
print
(
'connect fail:'
,
host
,
file
=
stderr
)
if
self
.
sock
:
self
.
sock
.
close
()
self
.
sock
=
None
raise
socket
.
error
(
msg
)
raise
(
code
,
msg
)
=
self
.
getreply
()
if
self
.
debuglevel
>
0
:
print
(
'connect:'
,
msg
,
file
=
stderr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment