Skip to content

Commit

Permalink
Changed error handling for all other big query samples as well (Googl…
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmats authored and Jon Wayne Parrott committed Nov 30, 2016
1 parent ff54b24 commit d3bccc1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bigquery/cloud-client/async_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def wait_for_job(job):
job.reload() # Refreshes the state via a GET request.
if job.state == 'DONE':
if job.error_result:
raise RuntimeError(job.error_result)
raise RuntimeError(job.errors)
return
time.sleep(1)

Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/export_data_to_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def wait_for_job(job):
job.reload()
if job.state == 'DONE':
if job.error_result:
raise RuntimeError(job.error_result)
raise RuntimeError(job.errors)
return
time.sleep(1)

Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/load_data_from_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def wait_for_job(job):
job.reload()
if job.state == 'DONE':
if job.error_result:
raise RuntimeError(job.error_result)
raise RuntimeError(job.errors)
return
time.sleep(1)

Expand Down
2 changes: 1 addition & 1 deletion bigquery/cloud-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def wait_for_job(job):
job.reload() # Refreshes the state via a GET request.
if job.state == 'DONE':
if job.error_result:
raise RuntimeError(job.error_result)
raise RuntimeError(job.errors)
return
time.sleep(1)

Expand Down

0 comments on commit d3bccc1

Please sign in to comment.