Skip to content

Commit

Permalink
feat: add headers info in expection
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed May 10, 2024
1 parent 0f1e287 commit a8ff14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions databend_py/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def do_query(self, url, query_sql):
raise WarehouseTimeoutException
except ValueError:
pass
raise UnexpectedException("Unexpected status code %d when post query, content: %s" %
(response.status_code, response.content))
raise UnexpectedException("Unexpected status code %d when post query, content: %s, headers: %s" %
(response.status_code, response.content, self.make_headers()))

if response.content:
try:
Expand Down

0 comments on commit a8ff14b

Please sign in to comment.