sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #46172
Re: [Question #665281]: Prevent abrupt program shutdown
Question #665281 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665281
Status: Open => Answered
Roman Podolyan proposed the following answer:
If the problem is really that simple, you need just to put Hover into
try-except block, and catch FindFailed exception
In my scripts I do this with functions like this:
_______
def try_hover(our_image): # hover-function with exception catched
try:
hover(our_image)
except FindFailed:
pass
_______
If this is a single occurrence, feel free to use try-except without
defining function.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.