aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/backend/branding/_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/backend/branding/_cog.py b/bot/exts/backend/branding/_cog.py
index b1d11157c..6472a477c 100644
--- a/bot/exts/backend/branding/_cog.py
+++ b/bot/exts/backend/branding/_cog.py
@@ -157,7 +157,7 @@ class Branding(commands.Cog):
timeout = 10 # Seconds.
try:
- with asyncio.timeout(timeout): # Raise after `timeout` seconds.
+ async 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.")