summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-02-26 22:41:45 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-02-26 22:41:45 +0000
commitc52165c983f5a1df4cb1326895115f96e749516f (patch)
tree7c7d7d4f400c66362e6c87c50c138e4b95ad4983 /Python/errors.c
parentd3fadc3f279ccfefdf32fb7cdbfca772aac06a0a (diff)
downloadcpython-c52165c983f5a1df4cb1326895115f96e749516f.tar.gz
When printing an unraisable error, don't print exceptions. before the name.
This duplicates the behavior whening normally printing exceptions.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index f31f025112..9a23c05282 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -603,7 +603,8 @@ PyErr_WriteUnraisable(PyObject *obj)
PyFile_WriteString("<unknown>", f);
else {
char* modstr = PyString_AsString(moduleName);
- if (modstr)
+ if (modstr &&
+ strcmp(modstr, "exceptions") != 0)
{
PyFile_WriteString(modstr, f);
PyFile_WriteString(".", f);