Skip to content

Commit aced935

Browse files
committed
fix mypy TypedDict _ClientErrorResponseError has no key BucketName
1 parent 82d3354 commit aced935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/athena/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def create_athena_bucket(boto3_session: boto3.Session | None = None) -> str:
458458
try:
459459
client_s3.create_bucket(Bucket=bucket_name, **args) # type: ignore[arg-type]
460460
except (client_s3.exceptions.BucketAlreadyExists, client_s3.exceptions.BucketAlreadyOwnedByYou) as err:
461-
_logger.debug("Bucket %s already exists.", err.response["Error"]["BucketName"])
461+
_logger.debug("Bucket %s already exists.", bucket_name)
462462
except botocore.exceptions.ClientError as err:
463463
if err.response["Error"]["Code"] == "OperationAborted":
464464
_logger.debug("A conflicting conditional operation is currently in progress against this resource.")

0 commit comments

Comments
 (0)