Skip to content

Commit 6a8cc6d

Browse files
yoblinclaude
andcommitted
fix: restore None guard for legacy direct-stage callers
Tests that construct ZephyrCoordinator without initialize() leave _coordinator_thread as None. The guard is needed for that path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a4b8454 commit 6a8cc6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/zephyr/src/zephyr/execution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def _wait_for_stage(self) -> None:
870870

871871
# Checked after completion so a clean shutdown racing the final
872872
# task can never false-positive — only true crashes reach here.
873-
if not self._coordinator_thread.is_alive():
873+
if self._coordinator_thread is not None and not self._coordinator_thread.is_alive():
874874
raise ZephyrWorkerError(
875875
"Coordinator thread is no longer alive. "
876876
"Check logs for 'Coordinator loop crashed' for the root cause."

0 commit comments

Comments
 (0)