using try and except
Asked by
Maxo K.
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?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Maxo K.
- Solved:
- Last query:
- Last reply:
To post a message you must log in.