Skip to content

Commit 261033f

Browse files
ryanmatsplamut
authored andcommitted
Adjusted error handling based on Googler feedback [(googleapis#693)](GoogleCloudPlatform/python-docs-samples#693)
1 parent c594be1 commit 261033f

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)