From ac5187238813c53494d90cd75ce4eb372b4ec716 Mon Sep 17 00:00:00 2001 From: Steven Serrata <9343811+sserrata@users.noreply.github.com> Date: Wed, 15 Apr 2020 14:31:37 -0500 Subject: [PATCH] Allow non-200 HTTP status response from API (#157) --- pan_cortex_data_lake/query.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pan_cortex_data_lake/query.py b/pan_cortex_data_lake/query.py index 69fe7db..63b4a28 100644 --- a/pan_cortex_data_lake/query.py +++ b/pan_cortex_data_lake/query.py @@ -235,8 +235,6 @@ def iter_job_results( r = self.get_job_results( job_id=job_id, params=params, enforce_json=enforce_json, **kwargs ) - if not r.ok: - raise HTTPError("%s" % r.text) r_json = r.json() if r_json["state"] == "DONE": page_cursor = r_json["page"].get("pageCursor")