From 2573cc18de2d31dabb619b314a41d30c9cb53c4c Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Sat, 18 Jan 2020 09:22:16 +0900 Subject: [PATCH] Fix setting exception_handler --- pytchat/core_async/livechat.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pytchat/core_async/livechat.py b/pytchat/core_async/livechat.py index 2f61aae..17140f8 100644 --- a/pytchat/core_async/livechat.py +++ b/pytchat/core_async/livechat.py @@ -109,9 +109,7 @@ class LiveChatAsync: self._topchat_only = topchat_only if not LiveChatAsync._setup_finished: LiveChatAsync._setup_finished = True - if exception_handler == None: - self._set_exception_handler(self._handle_exception) - else: + if exception_handler: self._set_exception_handler(exception_handler) if interruptable: signal.signal(signal.SIGINT,