1
0

python 3.8: adapt to breaking changes re asyncio.CancelledError

(and TimeoutError)

closes #5798
This commit is contained in:
SomberNight
2019-12-11 23:07:47 +01:00
parent fa9b997c70
commit 308517d473
5 changed files with 13 additions and 7 deletions

View File

@@ -1020,6 +1020,7 @@ def ignore_exceptions(func):
try:
return await func(*args, **kwargs)
except asyncio.CancelledError:
# note: with python 3.8, CancelledError no longer inherits Exception, so this catch is redundant
raise
except Exception as e:
pass