mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +03:00
Catching WinError 10038
While client.connect() there were OSError: [WinError 10038] an operation was attempted on something that is not a socket
This commit is contained in:
parent
c22224f516
commit
446174c7de
|
@ -100,7 +100,7 @@ class TcpClient:
|
||||||
except socket.timeout as e:
|
except socket.timeout as e:
|
||||||
raise TimeoutError() from e
|
raise TimeoutError() from e
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == errno.EBADF:
|
if e.errno == errno.EBADF or e.errno == errno.ENOTSOCK:
|
||||||
self._raise_connection_reset()
|
self._raise_connection_reset()
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user