Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
httpcore/backends/trio: map OSError exceptions (#543)
The underlying socket implementations can raise OSError for situations such as `getaddrinfo` failing to resolve an address. Previously, these errors would not be mapped to httpcore exception types for the trio backend. Now, map OSError exceptions in the trio backend to ConnectError. This will make trio consistent with the asyncio backend. Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
- Loading branch information