Skip to content

Commit 4ae9355

Browse files
authored
Minor - Catching OperationAborted exception (#815)
1 parent 2e039ec commit 4ae9355

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

awswrangler/athena/_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ def create_athena_bucket(boto3_session: Optional[boto3.Session] = None) -> str:
405405
bucket.create(**args)
406406
except resource.meta.client.exceptions.BucketAlreadyOwnedByYou as err:
407407
_logger.debug("Bucket %s already exists.", err.response["Error"]["BucketName"])
408+
except botocore.exceptions.ClientError as err:
409+
if err.response["Error"]["Code"] == "OperationAborted":
410+
_logger.debug("A conflicting conditional operation is currently in progress against this resource.")
408411
bucket.wait_until_exists()
409412
return path
410413

0 commit comments

Comments
 (0)