Skip to content

Commit 443f138

Browse files
quoimectswast
andauthored
fix: add exception context to GenericGBQExceptions (#629)
Co-authored-by: Tim Swast <swast@google.com>
1 parent 4922fde commit 443f138

File tree

1 file changed

+1
-1
lines changed
  • packages/pandas-gbq/pandas_gbq

1 file changed

+1
-1
lines changed

packages/pandas-gbq/pandas_gbq/gbq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def process_http_error(ex):
393393
error_message = ex.errors[0]["message"]
394394
raise TableCreationError(f"Reason: {error_message}")
395395
else:
396-
raise GenericGBQException("Reason: {0}".format(ex))
396+
raise GenericGBQException("Reason: {0}".format(ex)) from ex
397397

398398
def download_table(
399399
self,

0 commit comments

Comments
 (0)