Skip to content

Potential fix for code scanning alert no. 293: Use of exit() or quit() - #496

Draft
DavidPCoster wants to merge 1 commit into
devfrom
alert-autofix-293
Draft

Potential fix for code scanning alert no. 293: Use of exit() or quit()#496
DavidPCoster wants to merge 1 commit into
devfrom
alert-autofix-293

Conversation

@DavidPCoster

Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/UCL-CCS/EasyVVUQ/security/code-scanning/293

Use sys.exit() instead of exit() and ensure sys is imported in src/easyvvuq/sampling/fd.py.

Best minimal fix (no functionality change):

  1. Add import sys near the existing imports.
  2. Replace exit() in the error branch inside generate_nodes(...) with sys.exit().

This preserves current behavior (terminating execution on this critical internal state) 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>
@DavidPCoster
DavidPCoster requested review from cspgdds and mzrghorbani and removed request for cspgdds and mzrghorbani August 13, 2026 07:17
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.

2 participants