git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8e76076
)
catch exceptions in dispatch thread
author
ThomasV
<thomasv@gitorious>
Thu, 28 Jun 2012 06:31:36 +0000 (10:31 +0400)
committer
ThomasV
<thomasv@gitorious>
Thu, 28 Jun 2012 06:31:36 +0000 (10:31 +0400)
processor.py
patch
|
blob
|
history
diff --git
a/processor.py
b/processor.py
index
96fb3c2
..
5b8ebf2
100644
(file)
--- a/
processor.py
+++ b/
processor.py
@@
-121,7
+121,11
@@
class RequestDispatcher(threading.Thread):
raise TypeError("self.shared not set in Processor")
while not self.shared.stopped():
session, request = self.pop_request()
- self.do_dispatch(session, request)
+ try:
+ self.do_dispatch(session, request)
+ except:
+ traceback.print_exc(file=sys.stdout)
+
self.stop()