Skip to content

Commit

Permalink
Fix message on comamnd execution timeout in Telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
aobolensk committed Mar 8, 2024
1 parent bf5114c commit a74be50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a74be50

Please sign in to comment.