Skip to content

Commit 5f0fa79

Browse files
ryanmatsshollyman
authored andcommitted
Adjusted error handling based on Googler feedback [(#693)](GoogleCloudPlatform/python-docs-samples#693)
1 parent bb3d4a3 commit 5f0fa79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/snippets/load_data_from_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def wait_for_job(job):
5454
job.reload()
5555
if job.state == 'DONE':
5656
if job.error_result:
57-
raise RuntimeError(job.error_result)
57+
raise RuntimeError(job.errors)
5858
return
5959
time.sleep(1)
6060

0 commit comments

Comments
 (0)