py_trees
py_trees copied to clipboard
Misleading error message in timers.py. Only float is supported for timer value.
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