mborsetti / webchanges

webchanges anonymously checks web content (including images) and commands for changes, delivering instant notifications and AI-powered summaries to your favorite platform.
https://pypi.org/project/webchanges/
Other
37 stars 6 forks source link

[BUG] wait_for_timeout fails with integers #39

Closed Markus00000 closed 2 years ago

Markus00000 commented 2 years ago

Describe the bug

wait_for_timeout only works with floats, not integers.

To Reproduce

wait_for_timeout: 8
=> ValueError: Job 1: Directive 'wait_for_timeout' can only be a number; found <class 'int'>.

wait_for_timeout: 8.0
=> works

Expected behavior

Integers should work as numbers.

Version info

mborsetti commented 2 years ago

Thanks Markus for the report!

Will be fixed in the next release (and thanks for the workaround).

mborsetti commented 2 years ago

Fixed in 3.10.2