Пример #1
0
 def exception(self):
     """String representation of the exception."""
     buf = traceback.format_exception_only(self.exc_type, self.exc_value)
     return native_(''.join(buf).strip(), 'utf-8', 'replace')
Пример #2
0
 def exception(self):
     """String representation of the exception."""
     buf = traceback.format_exception_only(self.exc_type, self.exc_value)
     return native_(''.join(buf).strip(), 'utf-8', 'replace')