Skip to content

Commit 9279825

Browse files
authored
ClientDisconnect inherits from OSError instead of IOError (#2393)
1 parent 875f6c6 commit 9279825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvicorn/protocols/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from uvicorn._types import WWWScope
77

88

9-
class ClientDisconnected(IOError): ...
9+
class ClientDisconnected(OSError): ...
1010

1111

1212
def get_remote_addr(transport: asyncio.Transport) -> tuple[str, int] | None:

0 commit comments

Comments
 (0)