def format_traceback(self): if self.traceback is None: return None return ''.join(traceback.format_tb(self.traceback))