Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use print+sys.exit for consistency
  • Loading branch information
tomasr8 committed Feb 23, 2025
commit 18d29cb48f1026c6b6b14e71423b186e215dbd70
3 changes: 2 additions & 1 deletion Tools/i18n/pygettext.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,8 @@ class Options:
try:
options.keywords = dict(parse_spec(spec) for spec in options.keywords)
except ValueError as e:
raise SystemExit(e)
print(e, file=sys.stderr)
sys.exit(1)
if not no_default_keywords:
options.keywords |= DEFAULTKEYWORDS

Expand Down