CrossHair icon indicating copy to clipboard operation
CrossHair copied to clipboard

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

Open pschanely opened this issue 2 years ago • 0 comments

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)

pschanely avatar Jul 12 '23 18:07 pschanely