← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #281015]: How to preserve all information of an error when using an error handles

 

Question #281015 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281015

    Status: Open => Answered

Evgen proposed the following answer:
This should help:

try:
    ClassX.function1()
    ...

except FindFailed as textoferror:
    print(textoferror)
    ...

See https://docs.python.org/2/tutorial/errors.html for details

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.