I have a script with an bail-out function like so:
def die(): from sys import exit exit()
Occasionally in the script I check a condition and exit if necessary. This works great in 10.1, but unfortunately our server is still at 10. I had to modify the function as follows to work (per this post):
def die(): from sys import exit try: exit() except SystemExit: pass
The problem is that it gets to the
passes, and keeps on trucking right to the end of the script. Is there any way to actually make the script stop?