aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
Diffstat (limited to 'discord/ext')
-rw-r--r--discord/ext/commands/core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 04149b2a..03da8804 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -47,6 +47,8 @@ def wrap_callback(coro):
ret = yield from coro(*args, **kwargs)
except CommandError:
raise
+ except asyncio.CancelledError:
+ return
except Exception as e:
raise CommandInvokeError(e) from e
return ret
@@ -60,6 +62,8 @@ def hooked_wrapped_callback(command, ctx, coro):
ret = yield from coro(*args, **kwargs)
except CommandError:
raise
+ except asyncio.CancelledError:
+ return
except Exception as e:
raise CommandInvokeError(e) from e
finally: