Skip to content

Commit c0b301f

Browse files
Add a comment.
1 parent 522d800 commit c0b301f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/asyncio/base_events.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,9 @@ async def _connect_sock(self, exceptions, addr_info, local_addr_infos=None):
10491049
try:
10501050
sock.close()
10511051
except OSError:
1052+
# An error when closing a newly created socket is
1053+
# not important, but it can overwrite more important
1054+
# non-OSError error. So ignore it.
10521055
pass
10531056
raise
10541057
finally:

0 commit comments

Comments
 (0)