CommonClient: don't update ui hints if there is no ui (#4791)

This commit is contained in:
Sanjay Govind
2025-04-02 12:54:27 +13:00
committed by GitHub
parent 96be0071e6
commit daee6d210f

View File

@@ -413,7 +413,8 @@ class CommonContext:
await self.server.socket.close()
if self.server_task is not None:
await self.server_task
self.ui.update_hints()
if self.ui:
self.ui.update_hints()
async def send_msgs(self, msgs: typing.List[typing.Any]) -> None:
""" `msgs` JSON serializable """