Do not exit event loop if an unhandled exception occurs in a callback

This commit is contained in:
Kovid Goyal 2016-11-29 09:46:43 +05:30
parent f4e3fbcb2e
commit 5ee4458e04

View File

@ -176,7 +176,11 @@ class TabManager(Thread):
func, args = self.action_queue.get_nowait()
except Empty:
break
func(*args)
try:
func(*args)
except Exception:
import traceback
traceback.print_exc()
def add_child_fd(self, child_fd, read_ready, write_ready):
self.read_dispatch_map[child_fd] = read_ready