Return a string with the traceback.
(self, limit=None)
| 95 | prev_tb.set_next(None) |
| 96 | |
| 97 | def render_as_text(self, limit=None): |
| 98 | """Return a string with the traceback.""" |
| 99 | lines = traceback.format_exception(self.exc_type, self.exc_value, |
| 100 | self.frames[0], limit=limit) |
| 101 | return ''.join(lines).rstrip() |
| 102 | |
| 103 | def render_as_html(self, full=False): |
| 104 | """Return a unicode string with the traceback as rendered HTML.""" |