← Back to team overview

sikuli-driver team mailing list archive

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

 

see related question

** Changed in: sikuli
       Status: New => Opinion

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

-- 
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:
  Opinion

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


References