We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c323e3b commit 1318d98Copy full SHA for 1318d98
Python/codecs.c
@@ -778,7 +778,7 @@ PyObject *PyCodec_ReplaceErrors(PyObject *exc)
778
PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
779
{
780
if (!PyObject_TypeCheck(exc, (PyTypeObject *)PyExc_UnicodeEncodeError)) {
781
- wrong_exception_type(exc);
+ unsupported_unicode_error_type(exc);
782
return NULL;
783
}
784
0 commit comments