Skip to content

Commit 9c13e42

Browse files
BUG: Changed exception case pandas-dev#45319
1 parent b98f2eb commit 9c13e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/tools/datetimes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _maybe_cache(
231231
try:
232232
cache_array = Series(cache_dates, index=unique_dates)
233233
except OutOfBoundsDatetime:
234-
pass
234+
return cache_array
235235
# GH#39882 and GH#35888 in case of None and NaT we get duplicates
236236
if not cache_array.index.is_unique:
237237
cache_array = cache_array[~cache_array.index.duplicated()]

0 commit comments

Comments
 (0)