Skip to content

Commit 088c00a

Browse files
committed
Misc
1 parent b1f4763 commit 088c00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/ipc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def __enter__(self) -> IPCServer:
272272
else:
273273
try:
274274
self.connection, _ = self.sock.accept()
275-
except socket.timeout as e:
275+
except TimeoutError as e:
276276
raise IPCException("The socket timed out") from e
277277
return self
278278

0 commit comments

Comments
 (0)