mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
use sys.exit
This commit is contained in:
parent
9fbd8318f0
commit
1415c8ce7b
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ Environment Variables:
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
CHANGELOG_PATH = os.environ.get("CHANGELOG_PATH", "CHANGELOG.md")
|
||||
VERSION = os.environ['VERSION']
|
||||
|
|
@ -95,7 +96,7 @@ try:
|
|||
|
||||
except FileNotFoundError:
|
||||
print(f"Error: Changelog file not found at {CHANGELOG_PATH}")
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
except Exception as e:
|
||||
print(f"Error updating changelog: {str(e)}")
|
||||
print(f"Current working directory: {os.getcwd()}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue