From 508dc11cbf5ffb4ffe5d9f7da2328edd0c30fac4 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Fri, 24 Aug 2012 15:31:38 -0500 Subject: [PATCH] Ensure that if a @hook.singlethread hook throws, we keep running it --- core/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/main.py b/core/main.py index 6dc35b3..3e344b6 100644 --- a/core/main.py +++ b/core/main.py @@ -102,7 +102,10 @@ class Handler(object): db_conns[input.conn] = db input.db = db - run(self.func, input) + try: + run(self.func, input) + except: + traceback.print_exc() def stop(self): self.input_queue.put(StopIteration)