Skip to content

Commit 1415c8c

Browse files
committed
use sys.exit
1 parent 9fbd831 commit 1415c8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/scripts/overwrite_changeset_changelog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#!/usr/bin/env python3
2323

2424
import os
25+
import sys
2526

2627
CHANGELOG_PATH = os.environ.get("CHANGELOG_PATH", "CHANGELOG.md")
2728
VERSION = os.environ['VERSION']
@@ -95,7 +96,7 @@ def overwrite_changelog_section(changelog_text: str, new_content: str):
9596

9697
except FileNotFoundError:
9798
print(f"Error: Changelog file not found at {CHANGELOG_PATH}")
98-
exit(1)
99+
sys.exit(1)
99100
except Exception as e:
100101
print(f"Error updating changelog: {str(e)}")
101102
print(f"Current working directory: {os.getcwd()}")

0 commit comments

Comments
 (0)