sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18382
Re: [Question #229988]: How to implement Try Catch error handling in Sikuli Script
Question #229988 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/229988
Status: Open => Answered
robert gonzales proposed the following answer:
if you want to catch FindFailed Exceptions you have to do something like
try:
some code...
except FindFailed:
some code...
on the other hand if your trying to catch a a different Exception but
FindFailed errors are prematurely ending your script, go back and figure
out why sikuli cant find the images and fix the problem.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.