Provide custom handler in reactor for unhandled exceptions
[email protected] Fri, 25 Sep 2009 15:26:54 -0000
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from orestis <None>:
The current behaviour when an unhandled exception is raised is for the reactor to log it.
I cannot find any mention in the docs of how to change or suppress this behaviour, so I would like a way to provide something like this:
def customExceptionHandler(exc):
print 'Got an exception', exc
reactor.setExceptionHandler(customExceptionHandler)
assert reactor.exceptionHandler is customExceptionHandler
This would suppress the default exception handler.
----------
Type : enhancement
Component: core
Keywords :
Priority : normal
Nosy :
----------
http://twistedmatrix.com/trac/ticket/4041