[svn r38427] significantly reducing the trailing "Exception in Thread"

messages by having threads die more silently.  Most
of these threads and tracebacks are anyway on some
remote machine, and we need to take care that errors
are routed to the place of invocation (e.g. the
remote_exec() invoker should get remote exceptions,
if the remote thread goes out of scope, the resulting
exception will not be seen likely, anyway)

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-10 23:16:47 +01:00
parent 7dd0491764
commit 8e33cf6772
1 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ class Gateway(object):
self._trace("received <- %r" % msg) self._trace("received <- %r" % msg)
msg.received(self) msg.received(self)
except sysex: except sysex:
raise break
except EOFError: except EOFError:
break break
except: except:
@ -131,7 +131,7 @@ class Gateway(object):
self._traceex(excinfo) self._traceex(excinfo)
if msg is not None: if msg is not None:
msg.post_sent(self, excinfo) msg.post_sent(self, excinfo)
raise break
else: else:
self._trace('sent -> %r' % msg) self._trace('sent -> %r' % msg)
msg.post_sent(self) msg.post_sent(self)
@ -167,7 +167,7 @@ class Gateway(object):
close() close()
self._trace("execution finished:", repr(source)[:50]) self._trace("execution finished:", repr(source)[:50])
except (KeyboardInterrupt, SystemExit): except (KeyboardInterrupt, SystemExit):
raise pass
except: except:
excinfo = exc_info() excinfo = exc_info()
l = traceback.format_exception(*excinfo) l = traceback.format_exception(*excinfo)