aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-09 14:38:06 +0300
committerGravatar GitHub <[email protected]>2020-04-09 14:38:06 +0300
commit6f4213fff0ed80d0376159dd84a27e276fbb303b (patch)
treecd0a5029f8b89b9a630bbb3a83189e910fe53eb5
parentMerge pull request #813 from python-discord/feat/ci/b000/cache-pipenv (diff)
(Syncers): Fixed wrong except statement
Replaced `TimeoutError` with `asyncio.TimeoutError`.
-rw-r--r--bot/cogs/sync/syncers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/sync/syncers.py b/bot/cogs/sync/syncers.py
index 003bf3727..e55bf27fd 100644
--- a/bot/cogs/sync/syncers.py
+++ b/bot/cogs/sync/syncers.py
@@ -1,4 +1,5 @@
import abc
+import asyncio
import logging
import typing as t
from collections import namedtuple
@@ -122,7 +123,7 @@ class Syncer(abc.ABC):
check=partial(self._reaction_check, author, message),
timeout=constants.Sync.confirm_timeout
)
- except TimeoutError:
+ except asyncio.TimeoutError:
# reaction will remain none thus sync will be aborted in the finally block below.
log.debug(f"The {self.name} syncer confirmation prompt timed out.")