← Back to team overview

sikuli-driver team mailing list archive

[Bug 1719518] [NEW] In sub function of Python, setThrowException(False) dosent' work

 

Public bug reported:

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)

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1719518

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

Status in Sikuli:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1719518/+subscriptions


Follow ups