Merge pull request #60 from dentist/master

Fix @hook.singlethread when the hook throws
This commit is contained in:
Ryan Hitchman 2012-08-24 13:35:08 -07:00
commit 2a67bad5ac
1 changed files with 4 additions and 1 deletions

View File

@ -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)