bpo-25359: Add missed "goto error" after setting an exception. (#3712)
This commit is contained in:
parent
cd99e79dc7
commit
d6238a76c6
|
@ -941,6 +941,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer,
|
|||
else {
|
||||
PyErr_SetString(PyExc_OSError,
|
||||
"could not determine default encoding");
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* Check we have been asked for a real text encoding */
|
||||
|
|
Loading…
Reference in New Issue