[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:
which.linden
2008-03-25 21:21:40 -04:00
parent e04a7784d5
commit 8609886566

View File

@@ -413,7 +413,9 @@ class InternalServerError(ConnectionError):
traceback = llsd.parse(self.params.response_body)
except:
traceback = self.params.response_body
if isinstance(traceback, dict):
if(isinstance(traceback, dict)
and 'stack-trace' in traceback
and 'description' in traceback):
body = traceback
traceback = "Traceback (most recent call last):\n"
for frame in body['stack-trace']: