refs #2616 handle nested exceptions
parent
0d7ef61393
commit
40064be81d
|
@ -105,6 +105,7 @@ class HTTPServerHandler(BaseHTTPRequestHandler):
|
|||
self.sendJsonError(500, exceptionToMessage(e))
|
||||
else:
|
||||
arg0 = e.args[0]
|
||||
while isinstance (arg0, Exception): arg0 = arg0.args[0] ## handle nested exceptions
|
||||
if type (arg0) is str:
|
||||
logger.debug ('Message processor for "{}" returned exception string "{}"'.format(path[0], str(e)))
|
||||
self.sendJsonError (500, exceptionToMessage(e))
|
||||
|
|
Loading…
Reference in New Issue