Skip to content

Commit 760fa97

Browse files
committed
fix error?
1 parent 23b7cbe commit 760fa97

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pymongo/network_layer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
# Errors raised by sockets (and TLS sockets) when in non-blocking mode.
7070
BLOCKING_IO_ERRORS = (
7171
BlockingIOError,
72-
BLOCKING_IO_LOOKUP_ERROR,
72+
*BLOCKING_IO_LOOKUP_ERROR,
7373
*ssl_support.BLOCKING_IO_ERRORS,
7474
)
7575

pymongo/ssl_support.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
if HAVE_PYSSL:
5858
HAS_SNI = _pyssl.HAS_SNI | _ssl.HAS_SNI
5959
PYSSLError: Any = _pyssl.SSLError
60-
BLOCKING_IO_ERRORS: Any = _pyssl.BLOCKING_IO_ERRORS + _ssl.BLOCKING_IO_ERRORS
61-
BLOCKING_IO_READ_ERROR: Any = (_pyssl.BLOCKING_IO_READ_ERROR, _ssl.BLOCKING_IO_READ_ERROR)
62-
BLOCKING_IO_WRITE_ERROR: Any = (
60+
BLOCKING_IO_ERRORS: tuple = _pyssl.BLOCKING_IO_ERRORS + _ssl.BLOCKING_IO_ERRORS
61+
BLOCKING_IO_READ_ERROR: tuple = (_pyssl.BLOCKING_IO_READ_ERROR, _ssl.BLOCKING_IO_READ_ERROR)
62+
BLOCKING_IO_WRITE_ERROR: tuple = (
6363
_pyssl.BLOCKING_IO_WRITE_ERROR,
6464
_ssl.BLOCKING_IO_WRITE_ERROR,
6565
)

0 commit comments

Comments
 (0)