sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50948
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:
Hi, RailMan,
I just try it. It doesn't work.
Let me summarize:
[1]if like this:
++++++++++++++++++++++
try:
runScript("./click.sikuli")
exit(0)
except:
print("sikuli crashes")
exit(1)
++++++++++++++++++++++
then it always run the except clauses no matter the testClick script works or not.
[2]if like this:
++++++++++++++++++++++
try:
runScript("./click.sikuli")
except:
print("sikuli crashes")
exit(1)
exit(0)
+++++++++++++++++++++
then it always report "Exit code 0", never run the except clauses no matter the testClick script works or not.
[3] if like this
++++++++++++++++++++++
try:
runScript("./click.sikuli")
except:
print("sikuli crashes")
exit(1)
+++++++++++++++++++++++
then it never report Exit code, never run the except clauses no matter the testClick script works or not.
Thanks!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.