mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 05:27:54 -05:00
Update UI in StateManager only if we have it. (#938)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user