Fix setting exception_handler
This commit is contained in:
@@ -109,9 +109,7 @@ class LiveChatAsync:
|
|||||||
self._topchat_only = topchat_only
|
self._topchat_only = topchat_only
|
||||||
if not LiveChatAsync._setup_finished:
|
if not LiveChatAsync._setup_finished:
|
||||||
LiveChatAsync._setup_finished = True
|
LiveChatAsync._setup_finished = True
|
||||||
if exception_handler == None:
|
if exception_handler:
|
||||||
self._set_exception_handler(self._handle_exception)
|
|
||||||
else:
|
|
||||||
self._set_exception_handler(exception_handler)
|
self._set_exception_handler(exception_handler)
|
||||||
if interruptable:
|
if interruptable:
|
||||||
signal.signal(signal.SIGINT,
|
signal.signal(signal.SIGINT,
|
||||||
|
|||||||
Reference in New Issue
Block a user