Question #145455 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/145455
Status: Open => Answered
RaiMan proposed the following answer:
I guess, you get a FindFailed at
posbait = Region(125,263,795,389).find(Pattern("1A.png").similar(0.68))
but since this is thrown inside a "Java" event handler, the exception
cannot be handled.
comment:
using find() in the standard will not return None (as you expect) if not found,
it raises a FindFiled exception and the script stops.
Use exists() instead.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp