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: