Skip to content

Commit

Permalink
catch asyncio.CanceledError, closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Teekeks committed Sep 6, 2020
1 parent ea15a42 commit 3032fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitchAPI/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __run(self, runner: 'web.AppRunner'):
self.__server_running = True
try:
self.__loop.run_until_complete(self.__run_check())
except CancelledError:
except (CancelledError, asyncio.CancelledError):
pass

def __start(self):
Expand Down

0 comments on commit 3032fe2

Please sign in to comment.