We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24cc388 commit 3c745f7Copy full SHA for 3c745f7
trino/client.py
@@ -676,7 +676,7 @@ def process(self, http_response: Response) -> TrinoStatus:
676
677
http_response.encoding = "utf-8"
678
response = http_response.json()
679
- if "error" in response:
+ if "error" in response and response["error"]:
680
raise self._process_error(response["error"], response.get("id"))
681
682
if constants.HEADER_CLEAR_SESSION in http_response.headers:
0 commit comments