From a74be5085ea354278d94aa2ad76a3e9699191014 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Fri, 8 Mar 2024 22:26:11 +0800 Subject: [PATCH] Fix message on comamnd execution timeout in Telegram --- src/api/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/command.py b/src/api/command.py index 00a55dcb..21ab85db 100644 --- a/src/api/command.py +++ b/src/api/command.py @@ -89,7 +89,7 @@ async def run(self, cmd_line: List[str], execution_ctx: ExecutionContext) -> Non timeout_error, result = await Util.run_function_with_time_limit( self._run_impl(cmd_line, execution_ctx), self.max_execution_time) if timeout_error: - await Command.send_message(f"Command '{' '.join(cmd_line)}' took too long to execute") + await Command.send_message(execution_ctx, f"Command '{' '.join(cmd_line)}' took too long to execute") return result async def _run_impl(self, cmd_line: List[str], execution_ctx: ExecutionContext) -> None: