py_trees icon indicating copy to clipboard operation
py_trees copied to clipboard

Misleading error message in timers.py. Only float is supported for timer value.

Open CleanBandit5595 opened this issue 1 year ago • 0 comments

https://github.com/splintered-reality/py_trees/blob/0d5b39f2f6333c504406d8a63052c456c6bd1ce5/py_trees/timers.py#L59C9-L59C9

if not isinstance(duration, float):
    raise TypeError(
        "Timer: duration should be int or float, but you passed in {}".format(
            type(duration)
        )
    )

The error message is misleading, since int isn't actually supported, only float

CleanBandit5595 avatar Jan 04 '24 15:01 CleanBandit5595