Skip to content

Commit d17ae24

Browse files
quoimectswast
andauthored
fix: add exception context to GenericGBQExceptions (#629)
Co-authored-by: Tim Swast <[email protected]>
1 parent 257aa62 commit d17ae24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)