diff options
-rw-r--r-- | Python/codecs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index 12dfe28..1424bb5 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -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; } |