Skip to content

Commit

Permalink
[fix] except only Cancelled error
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Aug 23, 2018
1 parent 84e4def commit 172ff83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def main(loop):
task.cancel()
try:
await task
except:
except asyncio.CancelledError:
pass
finally:
await asyncio.sleep(1)
Expand Down

0 comments on commit 172ff83

Please sign in to comment.