← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #156247]: How are exception handled when using imported scripts?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is what I meant:
test2() might produce an error, but this is not an exception in the Python sense, that can be caught with try/except.
you have to convert the return of the failing openApp() (or any other action, that fails but does not raise an exception) into an exception (usually an AssertionError using assert())

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.