Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exceptions don't match CPython requests that closely #190

@dhalbert

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.

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