sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01595
[Question #147486]: using try and except
New question #147486 on Sikuli:
https://answers.launchpad.net/sikuli/+question/147486
Hello,
I am currently using a small script using: try and except
Code:
try:
Some code goes in here
except:
send email
-----------------------
It works pretty fine I would say, but I want to add an additional code which would assume the following: I want to put an additional layer between try and except if possible. So the script will run "try" function and in case it fails it runs the second function: try2 and if try2 is successful, then it should run "try" function once again. If "try2" fails, then it should do "except".
Did I explain well?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.