Skip to content

Commit

Permalink
BigQuery: fix swallowed error message (#6168)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and tseaver committed Oct 10, 2018
1 parent 82f2f45 commit 6fda29b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigquery/google/cloud/bigquery/dbapi/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def execute(self, operation, parameters=None, job_id=None):
# Wait for the query to finish.
try:
self._query_job.result()
except google.cloud.exceptions.GoogleCloudError:
raise exceptions.DatabaseError(self._query_job.errors)
except google.cloud.exceptions.GoogleCloudError as exc:
raise exceptions.DatabaseError(exc)

query_results = self._query_job._query_results
self._set_rowcount(query_results)
Expand Down

0 comments on commit 6fda29b

Please sign in to comment.