(self, line: str)
| 106 | self._client_context = await get_client_context(self._authentication_vals) |
| 107 | |
| 108 | async def handle_request(self, line: str): |
| 109 | if not self._client_context: |
| 110 | await self.authenticate() |
| 111 | |
| 112 | assert self._client_context |
| 113 | result = await self._translator.translate(line) |
| 114 | if isinstance(result, Failure): |
| 115 | print(result.message) |
| 116 | else: |
| 117 | result = result.value |
| 118 | print(json.dumps(result, indent=2)) |
| 119 | |
| 120 | try: |
| 121 | for action in result["actions"]: |
| 122 | await handle_call(action, self._client_context) |
| 123 | except Exception as error: |
| 124 | print("An exception occurred: ", error) |
nothing calls this directly
no test coverage detected