mirror of
https://github.com/python/cpython.git
synced 2024-11-29 12:54:02 +08:00
Improve exception text. Closes issue 13811.
This commit is contained in:
parent
cff9237d57
commit
d25cfe66f5
@ -241,8 +241,8 @@ parse_internal_render_format_spec(PyObject *format_spec,
|
||||
/* Finally, parse the type field. */
|
||||
|
||||
if (end-pos > 1) {
|
||||
/* More than one char remain, invalid conversion spec. */
|
||||
PyErr_Format(PyExc_ValueError, "Invalid conversion specification");
|
||||
/* More than one char remain, invalid format specifier. */
|
||||
PyErr_Format(PyExc_ValueError, "Invalid format specifier");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user