← 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:
--- runScript("./test2.sikuli",exit(1)).
not valid and hence excepts ;-)

try:
    runScript("./test2.sikuli")
    exit(0) # processed if run ok
except:
    print("sikuli crashes")
    exit(1) # processed if crashed

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