There was an error while loading. Please reload this page.
1 parent 480e285 commit efe7256Copy full SHA for efe7256
1 file changed
Modules/_io/fileio.c
@@ -423,7 +423,8 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
423
Py_DECREF(fdobj);
424
if (self->fd < 0) {
425
if (!PyErr_Occurred()) {
426
- /* The opener returned -1. See issue #27066 */
+ /* The opener returned a negative but didn't set an
427
+ exception. See issue #27066 */
428
PyErr_Format(PyExc_ValueError,
429
"opener returned %d", self->fd);
430
}
0 commit comments