Skip to content

Commit 9bf564b

Browse files
will this do the trick?
1 parent 613e365 commit 9bf564b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ cdef object ensure_td64ns(object ts):
252252
try:
253253
td64_value = get_timedelta64_value(ts) * mult
254254
except OverflowError as ex:
255-
msg = f"{ts} outside allowed range [{NPY_NAT + 1}ns, {INT64_MAX}ns]"
255+
msg = f"{str(ts)} outside allowed range [{NPY_NAT + 1}ns, {INT64_MAX}ns]"
256256
raise OutOfBoundsTimedelta(msg) from ex
257257

258258
return np.timedelta64(td64_value, "ns")

0 commit comments

Comments
 (0)