boto3.client("s3").head_bucket does not throw NoSuchBucket as per documentation #4092
Labels
documentation
This is a problem with documentation.
s3
service-api
This issue is caused by the service API, not the SDK implementation.
Describe the issue
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/head_bucket.html
But this exception is never raised.
Instead you get:
This previous issue was closed as won't fix because behaviour of underlying S3 API meant it was not possible to raise a custom exception.
But surely in that case the custom exception definition should be removed and documentation updated?
Links
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/head_bucket.html
The text was updated successfully, but these errors were encountered: