Commit 00198f9
committed
make the response content of a failed api call available to an exception handler
this allows for the following code:
try:
vaultwarden_client.api_request(...)
except httpx.HTTPStatusError as e:
print(e.response.json())1 parent 2c12bb1 commit 00198f9
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
0 commit comments