sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50915
Re: [Question #679012]: send email when script stops at error or finishes
Question #679012 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679012
BOCHENG YIN posted a new comment:
I think I get the idea to nest a script inside another script. if the nested script fails, it is possible not to halt the host script, but continue.
I create a test code. Please see below:
try:
runScript("./test2.sikuli")
except:
print("sikuli crashes")
I can run the code if all of the targets in test2.sikuli are visible.
Then I block one of the targets to deliberately disrupt the try part of the script. The script is terminated immediately.
I try to add an exit() parameter to the runScript() code line. now it is like this: runScript("./test2.sikuli",exit(1)). Now it just run the except clause.
I think I just don't know how to make it work in an expected way. Could anyone help?
Thanks a lot!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.