Skip to content

Commit

Permalink
ClientDisconnect inherits from OSError instead of IOError (#2393)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Jul 20, 2024
1 parent 875f6c6 commit 9279825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvicorn/protocols/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from uvicorn._types import WWWScope


class ClientDisconnected(IOError): ...
class ClientDisconnected(OSError): ...


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

0 comments on commit 9279825

Please sign in to comment.