aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-31 10:54:07 +0300
committerGravatar ks123 <[email protected]>2020-03-31 10:54:07 +0300
commite28a580200243669b1a9219b9e9d19b7f5a503af (patch)
treee0ebcb8ecc3cdb55d95a34ef75a6f432c808ef07
parent(Tags): Modified helper function `handle_trashcan_react` to `send_embed_with_... (diff)
(Tags): Fixed `TimeoutError` shadowing with `asyncio.TimeoutError`.
-rw-r--r--bot/cogs/tags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py
index 3729b4511..9548f2e43 100644
--- a/bot/cogs/tags.py
+++ b/bot/cogs/tags.py
@@ -1,7 +1,7 @@
+import asyncio
import logging
import re
import time
-from asyncio import TimeoutError
from pathlib import Path
from typing import Callable, Dict, Iterable, List, Optional
@@ -154,7 +154,7 @@ class Tags(Cog):
)
try:
await self.bot.wait_for("reaction_add", timeout=60.0, check=check_trashcan)
- except TimeoutError:
+ except asyncio.TimeoutError:
await msg.remove_reaction(Emojis.trashcan, msg.author)
else:
await ctx.message.delete()