Merge pull request #60 from dentist/master
Fix @hook.singlethread when the hook throws
This commit is contained in:
commit
2a67bad5ac
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue