I am also wondering if it is possible to somehow p...
# ask-community
n
I am also wondering if it is possible to somehow parameterize my code so that in the UI I can optionally skip past errors? Like if there is an error I would have the choice to skip it and continue the run? This is an error I wrote with
sys.exit()
if that is relevant.
a
You would probably want to raise an exception instead of using
sys.exit()
. Exit will fully exit the application, there's no recovery. If you raise an exception, you can catch it and handle it however you'd like (or ignore it, and it'll exit if there is no handler)
👍 1