are all of the exceptions FindFailed

Asked by Marc Summers on 2018-08-23

I did not find anything that specifically answered this, so my question is

try:
      wait(" somepicture.png")
except Exception:
       print "some error output"

except Exception: does not work, only

except FindFailed:

Just wondering why ?

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-08-23
Last reply:
2018-08-24
masuo (masuo-ohara) said : #1

I assume that you are programing script with Python by using SikuliX IDE.
FindFailed exception is in java class, so it is out of jython Exception.

[FindFailed]
https://raiman.github.io/SikuliX1/javadocs/org/sikuli/script/FindFailed.html

[Exception]
https://docs.python.org/2/library/exceptions.html#exception-hierarchy

Can you help with this problem?

Provide an answer of your own, or ask Marc Summers for more information if necessary.

To post a message you must log in.