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

Wrong Error Message Timers.py #435

Open
ge75buc opened this issue Jan 23, 2024 · 1 comment
Open

Wrong Error Message Timers.py #435

ge75buc opened this issue Jan 23, 2024 · 1 comment

Comments

@ge75buc
Copy link

ge75buc commented Jan 23, 2024

Dear PyTrees-Team,

in line 59 of timers.py (https://github.com/splintered-reality/py_trees/blob/devel/py_trees/timers.py#L59)
the error message suggests, that the input can be of type float OR int, while the actual check only accepts type float.

While the behaviour is correct, the error-message may be reformulated to:
"Timer: duration should be float, but you passed in {}".format(
type(duration)

@CleanBandit5595
Copy link

yup, I've mentioned it here #432

no respose yet...

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

2 participants