Skip to content

Commit ac12caf

Browse files
authored
troubleshoot CI (pandas-dev#40036)
1 parent 8ec9e0a commit ac12caf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/_libs/tslibs/conversion.pyx

+2-3
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,8 @@ def ensure_timedelta64ns(arr: ndarray, copy: bool=True):
294294
else:
295295
bad_val = tdmax
296296

297-
raise OutOfBoundsTimedelta(
298-
f"Out of bounds for nanosecond {arr.dtype.name} {bad_val}"
299-
)
297+
msg = f"Out of bounds for nanosecond {arr.dtype.name} {str(bad_val)}"
298+
raise OutOfBoundsTimedelta(msg)
300299

301300
return dt64_result.view(TD64NS_DTYPE)
302301

0 commit comments

Comments
 (0)