Skip to content

fix: move sys.exit(1) inside except block in run_command#450

Open
Jah-yee wants to merge 3 commits intomicrosoft:mainfrom
Jah-yee:fix-sys-exit
Open

fix: move sys.exit(1) inside except block in run_command#450
Jah-yee wants to merge 3 commits intomicrosoft:mainfrom
Jah-yee:fix-sys-exit

Conversation

@Jah-yee
Copy link

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

The sys.exit(1) was at wrong indentation level - same as try block instead of inside except block. This caused the function to always exit with code 1 after running any command, even on success.

Fixes: setup_env.py line 107, utils/e2e_benchmark.py line 23

See issue: #447

Jah-yee and others added 3 commits March 13, 2026 15:44
- Enables running BitNet in Kubernetes or Docker environments
- Uses Python 3.11-slim as base image
- Installs all build dependencies (cmake, build-essential)
- Includes Python requirements for inference
- Resolves: microsoft#433
The sys.exit(1) was at wrong indentation level - same as try block
instead of inside except block. This caused the function to always
exit with code 1 after running any command, even on success.

Fixes: setup_env.py line 107, utils/e2e_benchmark.py line 23
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.

1 participant