'Return a string with the traceback.'

def render_as_text(self, limit=None):

    lines = traceback.format_exception(self.exc_type, self.exc_value, self.frames[0], limit=limit)
    return ''.join(lines).rstrip()
