diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 6f729291c8f..f615f6851b2 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -2794,7 +2794,7 @@ tzinfo_fromutc(PyDateTime_TZInfo *self, PyDateTime_DateTime *dt) mm += delta; if ((mm < 0 || mm >= 60) && normalize_datetime(&y, &m, &d, &hh, &mm, &ss, &us) < 0) - goto Fail; + return NULL; result = new_datetime(y, m, d, hh, mm, ss, us, dt->tzinfo); if (result == NULL) return result;