summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 7a2f02a8..c688091 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -273,7 +273,7 @@ time_convert(time_t when, struct tm * (*function)(const time_t *))
if (errno == 0)
errno = EINVAL;
#endif
- return PyErr_SetFromErrno(PyExc_IOError);
+ return PyErr_SetFromErrno(PyExc_ValueError);
}
return tmtotuple(p);
}