Skip to content

Fix: sys.exit(1) runs unconditionally due to indentation bug#453

Open
Jah-yee wants to merge 1 commit intomicrosoft:mainfrom
Jah-yee:fix-indentation-sys-exit
Open

Fix: sys.exit(1) runs unconditionally due to indentation bug#453
Jah-yee wants to merge 1 commit intomicrosoft:mainfrom
Jah-yee:fix-indentation-sys-exit

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 13, 2026

The sys.exit(1) was at the same indentation level as try block, causing it to run unconditionally after subprocess finishes - even when the command succeeds. Moved inside except block.

Fixes: #447

Files changed:

  • setup_env.py (line 107)
  • utils/e2e_benchmark.py (line 23)

The sys.exit(1) was at the same indentation level as try block,
causing it to run unconditionally after subprocess finishes - even
when the command succeeds. Moved inside except block.

Fixes: microsoft#447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sys.exit(1) runs unconditionally due to indentation bug in run_command()

1 participant