Merge pull request #299 from culnaen/patch-1

fix AttributeError
This commit is contained in:
Alex Root Junior 2020-04-11 18:11:51 +03:00 committed by GitHub
commit aec67b18af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,7 @@ class WebhookRequestHandler(web.View):
try: try:
try: try:
await waiter await waiter
except asyncio.futures.CancelledError: except asyncio.CancelledError:
fut.remove_done_callback(cb) fut.remove_done_callback(cb)
fut.cancel() fut.cancel()
raise raise