Skip to content

Commit 7b26661

Browse files
Merge pull request #1310 from VWS-Python/print-error
Show response text if Oops is not in it as expected
2 parents 14b0b9f + b1e9024 commit 7b26661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vws/vws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _make_request(
167167
try:
168168
result_code = response.json()['result_code']
169169
except json.decoder.JSONDecodeError as exc:
170-
assert 'Oops' in response.text
170+
assert 'Oops' in response.text, response.text
171171
raise UnknownVWSErrorPossiblyBadName() from exc
172172

173173
if result_code == expected_result_code:

0 commit comments

Comments
 (0)