We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 659e675 commit ddb3246Copy full SHA for ddb3246
ads/aqua/client/client.py
@@ -314,9 +314,11 @@ def _parse_streaming_line(
314
try:
315
json_line = json.loads(line)
316
logger.debug(f"Parsed JSON line: {json_line}")
317
- except json.JSONDecodeError:
+ except json.JSONDecodeError as e:
318
logger.debug(f"Error decoding JSON from line: {line}")
319
- return None
+ raise json.JSONDecodeError(
320
+ f"Error decoding JSON from line: {e!s}", e.doc, e.pos
321
+ ) from e
322
323
if json_line.get("object") == "error":
324
# Raise an error for error objects in the stream
0 commit comments