Skip to content

Commit

Permalink
add return to waiter.wait, upcoming uplevel change from boto/botocore…
Browse files Browse the repository at this point in the history
  • Loading branch information
thehesiod committed Apr 25, 2023
1 parent 72b8dd5 commit 8b80ad9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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.1 (2023-XX-XX)
^^^^^^^^^^^^^^^^^^
* add return to waiter.wait

2.5.0 (2023-03-06)
^^^^^^^^^^^^^^^^^^
* bump botocore to 1.29.76 (thanks @jakob-keller #999)
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.0'
__version__ = '2.5.1.dev0'
4 changes: 2 additions & 2 deletions aiobotocore/waiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create_waiter_with_client(waiter_name, waiter_model, client):
# Waiter.wait method. This is needed to attach a docstring to the
# method.
async def wait(self, **kwargs):
await AIOWaiter.wait(self, **kwargs)
return await AIOWaiter.wait(self, **kwargs)

wait.__doc__ = WaiterDocstring(
waiter_name=waiter_name,
Expand Down Expand Up @@ -118,7 +118,7 @@ async def wait(self, **kwargs):
logger.debug(
"Waiting complete, waiter matched the " "success state."
)
return
return response
if current_state == 'failure':
reason = 'Waiter encountered a terminal failure state: %s' % (
acceptor.explanation
Expand Down

0 comments on commit 8b80ad9

Please sign in to comment.