Entry point for executing a JSON command from the client.
(self, command)
| 202 | # ------------------------------------------------------------------------- |
| 203 | |
| 204 | def execute_command(self, command): |
| 205 | """Entry point for executing a JSON command from the client.""" |
| 206 | try: |
| 207 | return self._execute_command_internal(command) |
| 208 | except Exception as e: |
| 209 | print(f"Error executing command: {str(e)}") |
| 210 | traceback.print_exc() |
| 211 | return {"status": "error", "message": str(e)} |
| 212 | |
| 213 | def _execute_command_internal(self, command): |
| 214 | """ |
no test coverage detected