diff options
author | 2023-11-25 21:24:19 +0000 | |
---|---|---|
committer | 2023-11-25 21:24:57 +0000 | |
commit | 8f1d9569179412c406c4b171f6cf91d127836f5d (patch) | |
tree | 720345696a472a999f2cd51418d38436f250c547 | |
parent | Bump deps to latest (diff) |
Replace usage of async_timeout with asyncio.timeout
async_timeout was a sub-dep of aiohttp, which was removed in 3.9.0 for Pytohn 3.11+ due to asyncio.timeout being a thing.
-rw-r--r-- | bot/exts/backend/branding/_cog.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/backend/branding/_cog.py b/bot/exts/backend/branding/_cog.py index 5d194ec3e..b1d11157c 100644 --- a/bot/exts/backend/branding/_cog.py +++ b/bot/exts/backend/branding/_cog.py @@ -7,7 +7,6 @@ from datetime import timedelta from enum import Enum from operator import attrgetter -import async_timeout import discord from arrow import Arrow from async_rediscache import RedisCache @@ -158,7 +157,7 @@ class Branding(commands.Cog): timeout = 10 # Seconds. try: - with async_timeout.timeout(timeout): # Raise after `timeout` seconds. + with asyncio.timeout(timeout): # Raise after `timeout` seconds. await pydis.edit(**{asset_type.value: file}) except discord.HTTPException: log.exception("Asset upload to Discord failed.") |