Skip to content

Commit

Permalink
Fixed TypeError in QtScheduler
Browse files Browse the repository at this point in the history
Fixes #687.
  • Loading branch information
agronholm committed Mar 3, 2023
1 parent a224747 commit be29169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apscheduler/schedulers/qt.py
Expand Up @@ -33,7 +33,7 @@ def shutdown(self, *args, **kwargs):
def _start_timer(self, wait_seconds):
self._stop_timer()
if wait_seconds is not None:
wait_time = min(wait_seconds * 1000, 2147483647)
wait_time = min(int(wait_seconds * 1000), 2147483647)
self._timer = QTimer.singleShot(wait_time, self._process_jobs)

def _stop_timer(self):
Expand Down
7 changes: 7 additions & 0 deletions docs/versionhistory.rst
Expand Up @@ -4,6 +4,13 @@ Version history
To find out how to migrate your application from a previous version of
APScheduler, see the :doc:`migration section <migration>`.

3.10.1
------

* Fixed ``TypeError: arguments did not match any overloaded call:`` in QtScheduler due
to ``wait_time`` being float and not an integer which QT needs it to be


3.10.0
------

Expand Down

0 comments on commit be29169

Please sign in to comment.