Commit f75f94c
[FIX] Redundant error handling
raise_for_status() raises the same exception, with the response's _content
available from the exception's `response` attribute. Moreover, passing the
headers as a positional argument when creating the exception makes the
api key from the authorization header show up in the string representation
of the exception in logs and messages.1 parent e0038f5 commit f75f94c
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 82 | | |
86 | 83 | | |
87 | 84 | | |
| |||
0 commit comments