diff options
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 297467f..2c3341c 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -851,6 +851,8 @@ time_tzset(PyObject *self, PyObject *unused) /* Reset timezone, altzone, daylight and tzname */ PyInit_timezone(m); Py_DECREF(m); + if (PyErr_Occurred()) + return NULL; Py_INCREF(Py_None); return Py_None; |