diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index c40e9ec..5659c71 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2496,7 +2496,7 @@ unicode_fromformat_arg(_PyUnicodeWriter *writer, { int ordinal = va_arg(*vargs, int); if (ordinal < 0 || ordinal > MAX_UNICODE) { - PyErr_SetString(PyExc_ValueError, + PyErr_SetString(PyExc_OverflowError, "character argument not in range(0x110000)"); return NULL; } |