Skip to content

IOError as the base class for aiohttp exceptions #5823

Answered by Dreamsorcerer
ajoino asked this question in Ideas
Discussion options

You must be logged in to vote

Well, the documentation suggests IOError is deprecated, so I guess it'd be OSError (or one of it's subclasses) if anything.
https://docs.python.org/3/library/exceptions.html#IOError

Given that these should be OS-related exceptions, I don't think it makes sense for all the aiohttp exceptions to be subclassed from that. The only ones that make sense are the connection errors, which according to the documentation are already subclassed from OSError (atleast the client ones):
https://docs.aiohttp.org/en/stable/client_reference.html?highlight=exception#aiohttp.ClientOSError

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ajoino
Comment options

Answer selected by ajoino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants