Skip to content

Commit

Permalink
fix #1031 (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
thehesiod authored Aug 7, 2023
1 parent 5743c8b commit 0a93fb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changes
-------
2.5.4 (2023-08-07)
^^^^^^^^^^^^^^^^^^
* fix __aenter__ attribute error introduced in refresh bugfix (#1031)

2.5.3 (2023-08-06)
^^^^^^^^^^^^^^^^^^
* add more support for Python 3.11
Expand Down
2 changes: 1 addition & 1 deletion aiobotocore/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.5.3'
__version__ = '2.5.4'
8 changes: 4 additions & 4 deletions aiobotocore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ async def get_bucket_region(self, bucket, response):

# Finally, HEAD the bucket. No other choice sadly.
try:
async with self._client as client:
response = await client.head_bucket(Bucket=bucket)
# NOTE: we don't need to aenter/aexit as we have a ref to the base client
response = await self._client.head_bucket(Bucket=bucket)
headers = response['ResponseMetadata']['HTTPHeaders']
except ClientError as e:
headers = e.response['ResponseMetadata']['HTTPHeaders']
Expand Down Expand Up @@ -596,8 +596,8 @@ async def get_bucket_region(self, bucket, response):

# Finally, HEAD the bucket. No other choice sadly.
try:
async with self._client as client:
response = await client.head_bucket(Bucket=bucket)
# NOTE: we don't need to aenter/aexit as we have a ref to the base client
response = await self._client.head_bucket(Bucket=bucket)
headers = response['ResponseMetadata']['HTTPHeaders']
except ClientError as e:
headers = e.response['ResponseMetadata']['HTTPHeaders']
Expand Down

0 comments on commit 0a93fb8

Please sign in to comment.