Try changing the last bit to: try: ... except SystemExit: raise except: Puke("An unknown exception was raised in the script.") Cheers, Neil