Skip to content

Commit

Permalink
fix: add exception context to GenericGBQExceptions (#629)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Swast <swast@google.com>
  • Loading branch information
quoimec and tswast committed May 10, 2023
1 parent 257aa62 commit d17ae24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas_gbq/gbq.py
Expand Up @@ -393,7 +393,7 @@ def process_http_error(ex):
error_message = ex.errors[0]["message"]
raise TableCreationError(f"Reason: {error_message}")
else:
raise GenericGBQException("Reason: {0}".format(ex))
raise GenericGBQException("Reason: {0}".format(ex)) from ex

def download_table(
self,
Expand Down

0 comments on commit d17ae24

Please sign in to comment.