Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check response code in batch.finish #609

Merged
merged 2 commits into from Sep 30, 2021

Conversation

cojenco
Copy link
Contributor

@cojenco cojenco commented Sep 30, 2021

This adds a check to the top-level response code in batch.finish so that an exception is raised with the underlying error.

Fixes #608 Fixes #404 馃

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Sep 30, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 30, 2021
@cojenco cojenco marked this pull request as ready for review September 30, 2021 18:22
@cojenco cojenco requested review from a team as code owners September 30, 2021 18:22
@cojenco cojenco merged commit 318a286 into googleapis:main Sep 30, 2021
cojenco added a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* add top-level response status code check to batch.finish

* test exception is raised when batch request fails
cojenco added a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* add top-level response status code check to batch.finish

* test exception is raised when batch request fails
@cojenco cojenco deleted the error-batch branch December 3, 2021 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
3 participants