← Back to team overview

sikuli-driver team mailing list archive

[Question #658654]: In sub function of Python, setThrowException(False) dosent' work.

 

New question #658654 on Sikuli:
https://answers.launchpad.net/sikuli/+question/658654

In sub function of Python, setThrowException(False) dosent' work.

In sub function:
from sikuli import *
def func_search():
    setThrowException(False)
    find(image)
    setThrowException(True)

In main function, call sub function:
func_search()

After run, SikuliX still report findFailed error if image dosen't exist;

If I change code in main function, it works fine:
setThrowException(False)
find(image)
setThrowException(True)

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