We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8366508 commit b6d3d3fCopy full SHA for b6d3d3f
1 file changed
ayon_api/utils.py
@@ -182,14 +182,8 @@ def raise_for_status(self, message=None):
182
if message is None:
183
message = str(exc)
184
185
- data = {}
186
- try:
187
- data = self.data or data
188
- except (AttributeError, KeyError, RequestsJSONDecodeError):
189
- pass
190
-
191
submsg = ""
192
- if data:
+ if self.data:
193
submsg = json.dumps(data, indent=4)
194
195
self.log.warning(
@@ -199,7 +193,7 @@ def raise_for_status(self, message=None):
199
submsg,
200
)
201
202
- detail = data.get("detail")
196
+ detail = self.data.get("detail")
203
197
if detail:
204
198
message = f"{message} ({detail})"
205
raise HTTPRequestError(message, exc.response)
0 commit comments