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

Bug #1719518 reported by Stranger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Opinion
Medium
RaiMan

Bug Description

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)

Revision history for this message
RaiMan (raimund-hocke) wrote :

see related question

Changed in sikuli:
status: New → Opinion
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.