Skip to content

Commit

Permalink
pandas-dev#34131 fix one test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierLuG committed Jun 13, 2020
1 parent ea9f69c commit ab5640f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/period.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2411,7 +2411,7 @@ class Period(_Period):
nanosecond = ts.nanosecond
if nanosecond != 0:
reso = 'nanosecond'
except OutOfBoundsDatetime:
except (ValueError, OutOfBoundsDatetime):
nanosecond = 0
if dt is NaT:
ordinal = NPY_NAT
Expand Down

0 comments on commit ab5640f

Please sign in to comment.