diff options
author | 2023-08-10 06:04:31 +0000 | |
---|---|---|
committer | 2023-08-10 06:04:31 +0000 | |
commit | f897f6c576d7dca764c9c0515b2c576e7fb0daea (patch) | |
tree | 4609c804db7ad9e0c4f415fc0e8a8353f2dfc6e1 /bot/utils/__init__.py | |
parent | Bump rapidfuzz from 3.1.2 to 3.2.0 (#1341) (diff) |
Bump ruff from 0.0.272 to 0.0.280 (#1333)
Co-authored-by: wookie184 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Lovering <[email protected]>
Co-authored-by: ChrisJL <[email protected]>
Diffstat (limited to 'bot/utils/__init__.py')
-rw-r--r-- | bot/utils/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/utils/__init__.py b/bot/utils/__init__.py index ddc2d111..2a4acd96 100644 --- a/bot/utils/__init__.py +++ b/bot/utils/__init__.py @@ -76,7 +76,7 @@ async def disambiguate( done, pending = await asyncio.wait(futures, return_when=asyncio.FIRST_COMPLETED, loop=ctx.bot.loop) # :yert: - result = list(done)[0].result() + result = next(iter(done)).result() # Pagination was canceled - result is None if result is None: @@ -87,7 +87,7 @@ async def disambiguate( # Pagination was not initiated, only one page if result.author == ctx.bot.user: # Continue the wait_for - result = await list(pending)[0] + result = await next(iter(pending)) # Love that duplicate code for coro in pending: |