From ef716dbfe9c313514773d7cc0543db80e7ece07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Mon, 2 Oct 2023 00:26:30 +0300 Subject: [PATCH] Fixed function name in error message --- src/apscheduler/_schedulers/async_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apscheduler/_schedulers/async_.py b/src/apscheduler/_schedulers/async_.py index 3b8ac20ac..67a546046 100644 --- a/src/apscheduler/_schedulers/async_.py +++ b/src/apscheduler/_schedulers/async_.py @@ -156,7 +156,7 @@ def _check_initialized(self) -> None: raise RuntimeError( "The scheduler has not been initialized yet. Use the scheduler as an " "async context manager (async with ...) in order to call methods other " - "than run_until_complete()." + "than run_until_stopped()." ) @property