Bucket.delete_blobs
doesn't call on_error
in a batch context
#659
Labels
api: storage
Issues related to the googleapis/python-storage API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Trying to delete a file that doesn't exist with
Bucket.delete_blobs
should call the function passed to theon_error
arg (if provided) instead of raising an exception. That's the behavior I observe when calling this method normally, but trying to do this inside a batch deletion seems to ignore the passed function and throw the exception anyway (instead of calling the function like I'd expect).This appears to be closely related to issue #31, but seemed a distinct enough use case to be worth mentioning.
Environment details
poetry
package manager, v1.1.11)google-cloud-storage
version: 1.43.0Steps to reproduce
GOOGLE_APPLICATION_CREDENTIALS
set, etc).filenames
that doesn't exist in the bucket.print_blob_name
is executed if thewith gcs_client.batch():
line is removed, but an exception is thrown instead when it's present.Code example
Stack trace
The text was updated successfully, but these errors were encountered: