Update UI in StateManager only if we have it. (#938)

This commit is contained in:
Goran Peretin
2024-05-23 12:28:47 +02:00
committed by GitHub
parent 46d6cc1277
commit 0adc80cf31

View File

@@ -167,7 +167,7 @@ class StateManager:
f"step {state.step_index} (state id={state.id})"
)
if self.current_state.current_epic:
if self.current_state.current_epic and self.ui:
await self.ui.send_task_progress(
self.current_state.tasks.index(self.current_state.current_task) + 1,
len(self.current_state.tasks),