Skip to content

Commit 888d4cc

Browse files
authored
bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090)
Fix indentation of <no Python frame> message in a faulthandler traceback or a Fatal Python error traceback. Example: Current thread 0x00007f03896fb740 (most recent call first): Garbage-collecting <no Python frame>
1 parent 3c65457 commit 888d4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/traceback.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
10711071

10721072
frame = tstate->frame;
10731073
if (frame == NULL) {
1074-
PUTS(fd, "<no Python frame>\n");
1074+
PUTS(fd, " <no Python frame>\n");
10751075
return;
10761076
}
10771077

0 commit comments

Comments
 (0)