Thanks to visit codestin.com Credit goes to github.com
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 6d817ad commit eb42b02Copy full SHA for eb42b02
1 file changed
Python/codecs.c
@@ -197,8 +197,8 @@ PyObject *_PyCodec_Lookup(const char *encoding)
197
}
198
if (i == len) {
199
/* XXX Perhaps we should cache misses too ? */
200
- PyErr_SetString(PyExc_LookupError,
201
- "unknown encoding");
+ PyErr_Format(PyExc_LookupError,
+ "unknown encoding: %s", encoding);
202
goto onError;
203
204
0 commit comments