Make tests pass for catching exceptions.

May now use sys.excepthook to catch exceptions
from threaded handlers.
This commit is contained in:
Lance Stout
2010-12-17 13:11:03 -05:00
parent 506eccf84d
commit 34c374a1e1
3 changed files with 47 additions and 16 deletions

View File

@@ -64,7 +64,7 @@ class RootStanza(StanzaBase):
log.exception('Error handling {%s}%s stanza' %
(self.namespace, self.name))
# Finally raise the exception, so it can be handled (or not)
# at a higher level
# at a higher level by using sys.excepthook.
raise e
register_stanza_plugin(RootStanza, Error)