sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43938
[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.