Closed AppleBoi86 closed 7 years ago
Interesting. Re-reading the Sikuli docs you're seeing the expected behavior, where findAll()
raises the FindFailed
exception you're seeing if it doesn't find anything. At the time I switched over from try... except...
handling, however, I switched over because the straight findAll()
method seemed to work fine. These changes will have to be reverted.
What version of Sikuli are you on? It seems to be behaving differently than mine (mine being potentially incorrect).
@mrmin123 instead of reverting the old try...except
maybe creating a wrapper function in util.py
which returns an empty array in case FindFailed which would be better in case you want to ignore exceptions
@waicool20 that's a good idea. It'll be nice to have any future needed changes to findAll
-related code isolated.
Sorry for the late reply. I'm using SikuliX 1.0.1.
@AppleBoi86 Please update to 1.1+. See #267
Previously noted inconsistent behavior has been confirmed to be a bug and will be addressed in the next nightly of Sikuli 1.1.1.
Please read the FAQ/Common Issues section of the README before opening a ticket. Please remove sections of this template you do not find relevant when creating your ticket.
Environment details
Issue
Happens every time. I did remove this from kancolle_auto.py
Console log (if applicable)
Relevant config snippet (if applicable)