diff options
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r-- | Modules/datetimemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 6f72929..f615f68 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; |