Trapping error for Region.wait ?
code:
if NextEpisodeRegi
If the logo is not found, the following exception is presented:
Exception in thread "Thread-4" Line 61, in file test.py
at org.sikuli.
at org.sikuli.
at org.python.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
org.sikuli.
Line 61, in file test.py
This kind of gets in the way of my error output...I am wondering if there is a more graceful way to deal with this exception? I tried
findLogo = NextEpisodeRegi
if findLogo.....
but I seem to get the same. I need to allow up to 8 seconds from the time a hotkey is triggered to see if the logo appears and if not then exit the def gracefully. Would i need to do a find instead? How would I delay this...if that's the answer, does it affect me in any other way (synchronous/async, etc...).
thanks!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by bengalih
Can you help with this problem?
Provide an answer of your own, or ask bengalih for more information if necessary.