Kaydet (Commit) eb42b026 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Add encoding name in LookupError. Fixes #615013. Will backport to 2.2.

üst 6d817ad4
......@@ -197,8 +197,8 @@ PyObject *_PyCodec_Lookup(const char *encoding)
}
if (i == len) {
/* XXX Perhaps we should cache misses too ? */
PyErr_SetString(PyExc_LookupError,
"unknown encoding");
PyErr_Format(PyExc_LookupError,
"unknown encoding: %s", encoding);
goto onError;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment