Skip to content

Commit

Permalink
use sys.exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ocasta181 committed Feb 5, 2025
1 parent 9fbd831 commit 1415c8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/overwrite_changeset_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#!/usr/bin/env python3

import os
import sys

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

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()}")
Expand Down

0 comments on commit 1415c8c

Please sign in to comment.