← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #679012]: send email when script stops at error or finishes

 

Question #679012 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679012

RaiMan proposed the following answer:
No idea, why, but exit() in the try block leads to the processing of the
except block.

so do it this way:

try:
    runScript("./testClick.sikuli")

except:
    print("sikuli crashes")
    exit(1)

exit(0) # only processed if run ok

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.