From 2dee2c0944588a70b374060c379a2258a324296e Mon Sep 17 00:00:00 2001 From: Victor Regalado Date: Wed, 23 Oct 2024 17:13:13 -0400 Subject: [PATCH] Exclude 202 status from failure handling to support MSQ queries --- pydruid/db/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydruid/db/api.py b/pydruid/db/api.py index 35613f71..5d570238 100644 --- a/pydruid/db/api.py +++ b/pydruid/db/api.py @@ -369,7 +369,7 @@ def _stream_query(self, query): if r.encoding is None: r.encoding = "utf-8" # raise any error messages - if r.status_code != 200: + if r.status_code != 200 and r.status_code != 202: try: payload = r.json() except Exception: