exit(1) in a python script exits console, by design or bug?

Aug 19, 2009
This might not be feasible to fix, but it was still not what I expected.

I have a script that is used in our continuous integration build process, and it fails with an exit code higher than 0 if something is wrong.

When working on this script I experienced that whenever the script signalled something wrong, I lost my console window. I finally tracked it down to having turned on Python integration in Take Command and thus the "exit(1)" command in Python exited the console as well.

This is not what I expected would happen, but perhaps it is by design?