Skip to content

Exceptions don't match CPython requests that closely #190

Description

@dhalbert

The CPython requests library has its own set of exceptions: https://requests.readthedocs.io/en/latest/api/#requests.ConnectTimeout
which are subclasses of system exceptions. Here is the source, showing the class definitions:
https://requests.readthedocs.io/en/latest/_modules/requests/exceptions/

I think using some subset of the requests exceptions might be nice for writing compatible code and one with clearer exceptions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions