From d7e604992d16ef1e31eb9ad93f13de0e1c5eeb38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 27 May 2024 14:42:26 +0200 Subject: [PATCH] updates wording and formatting --- src/pydase/data_service/task_manager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pydase/data_service/task_manager.py b/src/pydase/data_service/task_manager.py index e4d7899..9ecfa3e 100644 --- a/src/pydase/data_service/task_manager.py +++ b/src/pydase/data_service/task_manager.py @@ -108,11 +108,11 @@ class TaskManager: if inspect.iscoroutinefunction(method): if function_has_arguments(method): logger.info( - "Asynchronous functions (tasks) should be defined without " - f"arguments. The task '{method.__name__}' has at least one " - "argument. Please remove the argument(s) from this function to " - "use it in the frontend." - ) + "Async function %a is defined with at least one argument. If " + "you want to use it as a task, remove the argument(s) from the " + "function definition.", + method.__name__, + ) continue # create start and stop methods for each coroutine