Change a PyErr_Print() into a PyErr_Clear(),

per discussion in issue 1031213.
This commit is contained in:
Guido van Rossum 2007-10-15 15:54:11 +00:00
parent ec5601945a
commit 9fc1b96a19
1 changed files with 1 additions and 1 deletions

View File

@ -1542,7 +1542,7 @@ dec_utf8(const char *enc, const char *text, size_t len) {
Py_DECREF(unicode_text);
}
if (!ret) {
PyErr_Print();
PyErr_Clear();
}
return ret;
}