Commit 15d8093
authored
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>1 parent 1bf9cf2 commit 15d8093
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
0 commit comments