[svn r105] Minor tweak to account for the fact that only some responses can be parsed into tracebacks in this way.
This commit is contained in:
@@ -413,7 +413,9 @@ class InternalServerError(ConnectionError):
|
|||||||
traceback = llsd.parse(self.params.response_body)
|
traceback = llsd.parse(self.params.response_body)
|
||||||
except:
|
except:
|
||||||
traceback = self.params.response_body
|
traceback = self.params.response_body
|
||||||
if isinstance(traceback, dict):
|
if(isinstance(traceback, dict)
|
||||||
|
and 'stack-trace' in traceback
|
||||||
|
and 'description' in traceback):
|
||||||
body = traceback
|
body = traceback
|
||||||
traceback = "Traceback (most recent call last):\n"
|
traceback = "Traceback (most recent call last):\n"
|
||||||
for frame in body['stack-trace']:
|
for frame in body['stack-trace']:
|
||||||
|
Reference in New Issue
Block a user