← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #193835]: exit() always returns '1' on Sikuli

 

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

j posted a new comment:
Or you could do something like:

exceptionThrown=False
try:
    // do anything
except:
   // exceptionhandling
   exceptionThrown=True


if exceptionThrown == True:
    sys.exit(1)
else:
    sys.exit(0)

I know it's not the nicest way, RaiMans approach should be preferred.

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