diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-11-27 22:00:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-27 22:00:10 +0000 |
commit | 4dfae6f38e1720ddafcdd68043e476ecb41cb4d5 (patch) | |
tree | f4b3c2b296051e5f4ac3e4fdc9f4183758f65b4a /Python/pythonrun.c | |
parent | e71c12efcddc1076d5367461a5b416092267aa77 (diff) | |
download | cpython-git-4dfae6f38e1720ddafcdd68043e476ecb41cb4d5.tar.gz |
bpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 2c0950ee17..2f68b21460 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1022,7 +1022,7 @@ print_exception(struct exception_print_context *ctx, PyObject *value) { Py_XDECREF(modulename); PyErr_Clear(); - err = PyFile_WriteString("<unknown>", f); + err = PyFile_WriteString("<unknown>.", f); } else { if (!_PyUnicode_EqualToASCIIId(modulename, &PyId_builtins) && |