We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a62f64 commit cb03466Copy full SHA for cb03466
clickhouse_connect/driver/aiohttp_client.py
@@ -568,7 +568,11 @@ def parse_streaming():
568
return result
569
570
# Run parser in executor (pulls from queue, decompresses & parses)
571
- query_result = await loop.run_in_executor(None, parse_streaming)
+ try:
572
+ query_result = await loop.run_in_executor(None, parse_streaming)
573
+ except Exception:
574
+ await streaming_source.aclose()
575
+ raise
576
query_result.summary = self._summary(response)
577
578
# Attach streaming_source to query_result.source to ensure it gets closed
0 commit comments