🐛 check gui exists

This commit is contained in:
Nate Sesti 2023-11-07 17:23:55 -08:00
parent 0b05c2922b
commit 70671ee10e

View file

@ -106,7 +106,8 @@ class Window:
async def index():
async for progress in build_index(self.ide, self.config):
await self.gui.send_indexing_progress(progress)
if self.gui is not None:
await self.gui.send_indexing_progress(progress)
create_async_task(index(), on_error=self.ide.on_error)