We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e394710 commit f43b9c3Copy full SHA for f43b9c3
src/sagemaker/session.py
@@ -170,6 +170,13 @@ def default_bucket(self):
170
elif error_code == 'OperationAborted' and 'conflicting conditional operation' in message:
171
# If this bucket is already being concurrently created, we don't need to create it again.
172
pass
173
+ elif error_code == 'TooManyBuckets':
174
+ # Succeed if the default bucket exists
175
+ try:
176
+ s3.meta.client.head_bucket(Bucket=default_bucket)
177
+ pass
178
+ except ClientError:
179
+ raise
180
else:
181
raise
182
0 commit comments