def _print_traceback(self):
base_path = getattr(settings, 'ERASERHEAD_TRACEBACK_BASE_PATH', None)
for trace_line in traceback.format_list(self._traceback):
if base_path and (base_path not in trace_line):
continue
print("\t" + trace_line.strip().replace('\n', '\n\t'))
评论列表
文章目录