Do not exit event loop if an unhandled exception occurs in a callback
This commit is contained in:
parent
f4e3fbcb2e
commit
5ee4458e04
@ -176,7 +176,11 @@ class TabManager(Thread):
|
|||||||
func, args = self.action_queue.get_nowait()
|
func, args = self.action_queue.get_nowait()
|
||||||
except Empty:
|
except Empty:
|
||||||
break
|
break
|
||||||
func(*args)
|
try:
|
||||||
|
func(*args)
|
||||||
|
except Exception:
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
|
|
||||||
def add_child_fd(self, child_fd, read_ready, write_ready):
|
def add_child_fd(self, child_fd, read_ready, write_ready):
|
||||||
self.read_dispatch_map[child_fd] = read_ready
|
self.read_dispatch_map[child_fd] = read_ready
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user