Skip to content

Fix for Use of exit() or quit()#106

Merged
PaulWinterstein merged 1 commit into
mainfrom
finding-autofix-474
May 27, 2026
Merged

Fix for Use of exit() or quit()#106
PaulWinterstein merged 1 commit into
mainfrom
finding-autofix-474

Conversation

@PaulWinterstein
Copy link
Copy Markdown
Collaborator

Use sys.exit(1) instead of exit(1).

Best fix (without changing functionality):

  • In src/vipat_cli_scripts/generate_all.py, add import sys with the existing imports.
  • Replace exit(1) at line 23 with sys.exit(1).

This preserves behavior (exit status code 1 on unsupported version) while removing dependence on site.Quitter.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@PaulWinterstein PaulWinterstein marked this pull request as ready for review May 27, 2026 18:47
@PaulWinterstein PaulWinterstein merged commit 1aa6353 into main May 27, 2026
8 checks passed
@PaulWinterstein PaulWinterstein deleted the finding-autofix-474 branch May 27, 2026 18:47
@PaulWinterstein PaulWinterstein self-assigned this May 27, 2026
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