Skip to content

Commit 44c241a

Browse files
Make SEA client compatible
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent 6f0780f commit 44c241a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/databricks/sql/backend/sea/utils/http_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ def _make_request(
255255
) as response:
256256
# Handle successful responses
257257
if 200 <= response.status < 300:
258-
return response.json()
258+
if response.data:
259+
return json.loads(response.data.decode())
260+
else:
261+
return {}
259262

260263
error_message = f"SEA HTTP request failed with status {response.status}"
261264
raise Exception(error_message)

0 commit comments

Comments
 (0)