Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CleanBandit5595 opened this issue Jan 4, 2024 · 0 comments

Comments

@CleanBandit5595
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant