Skip to content

Commit 4c339f3

Browse files
committed
Add a comment to make Benedikt happy.
1 parent 79fb9d2 commit 4c339f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/errors.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,8 @@ write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type,
14851485
}
14861486
}
14871487

1488-
// Try printing the exception with color
1488+
// Try printing the exception using the stdlib module.
1489+
// If this fails, then we have to use the C implementation.
14891490
PyObject *print_exception_fn = PyImport_ImportModuleAttrString("traceback",
14901491
"_print_exception_bltin");
14911492
if (print_exception_fn != NULL && PyCallable_Check(print_exception_fn)) {
@@ -1494,6 +1495,7 @@ write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type,
14941495
Py_DECREF(print_exception_fn);
14951496
Py_XDECREF(result);
14961497
if (result != NULL) {
1498+
// Nothing else to do
14971499
return 0;
14981500
}
14991501
}

0 commit comments

Comments
 (0)