with expecting(prompts):
run("python -c 'raise Exception()'")
# other steps
When I run the script, the exception's non-zero exit code is suppressed and keeps going to the other steps.
When I run the script without expecting(prompts), the code exits like this, which is what I'd like:
I have a script that includes this:
When I run the script, the exception's non-zero exit code is suppressed and keeps going to the other steps. When I run the script without expecting(prompts), the code exits like this, which is what I'd like:
I'd like the script to exit when errors occur instead of failing silently and continuing.