← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #670456]: General error handling

 

Question #670456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670456

    Status: Open => Answered

RaiMan proposed the following answer:
def ffhandler(event):
    resetGUI()
FindFailed.setHandler(ffhandler)
use()

... should be sufficient

--- exists()
accepted - I have to find a way, to fix it.
I think, that the best thing would be, that the handler should know, wether it was an exists, so you can decide, to do nothing.
To generally switch of the visit of the handler with exists does not make sense, since other things than your idea a user might want to implement in the handler.

I will be back within 24 hours.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.