Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not treat KeyboardInterrupt as an exception in code-under-analysis #206

Open
pschanely opened this issue Jul 12, 2023 · 0 comments
Open

Comments

@pschanely
Copy link
Owner

Is your feature request related to a problem? Please describe.

If you try to kill CrossHair early with a Ctrl-C, and it happens to be in the middle of running your code (which it usually is), CrossHair will catch the exception and consider it to be a problem with the code under analysis.

Describe the solution you'd like
We should probably instead assume that KeyboardInterrupt is meant to stop crosshair itself.

Note that in extremely rare cases, the current behavior could be what's intended (verifying some helper function that explicitly raises the KeyboardInterrupt exception, for instance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant