diff options
| author | Benjamin Mintz <[email protected]> | 2019-06-13 19:38:07 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-06-20 22:51:28 -0400 |
| commit | 850a0431bfe869ca03ee22d7be5c4c7692166eab (patch) | |
| tree | 3166147e7a0ff6ef7ce9b85635cb588b98a986a3 /docs/_static/style.css | |
| parent | [commands] Ensure cooldowns are properly copied. (diff) | |
| download | discord.py-850a0431bfe869ca03ee22d7be5c4c7692166eab.tar.xz discord.py-850a0431bfe869ca03ee22d7be5c4c7692166eab.zip | |
Catch asyncio.CancelledError in 3.8 in typing context manager
In python 3.8, asyncio.CancelledError is a subclass of BaseException
rather than Exception, so `except Exception:` will not swallow
CancelledError. This change prevents an error in 3.8 from being printed
to the console when the following is run:
```
async with ctx.typing():
pass
```
Diffstat (limited to 'docs/_static/style.css')
0 files changed, 0 insertions, 0 deletions