← Back to team overview

sikuli-driver team mailing list archive

[Question #246151]: exception handling

 

New question #246151 on Sikuli:
https://answers.launchpad.net/sikuli/+question/246151

Hello Team,

i want to use Exception handling in my code.
throught some already asked questions on Launchpad i come to know that "sys.exc_info" will be having all the information about  the exception raised.

i have wrote: 
try:
    click("image.png")//assumes the image is not available
except findFailed:
    print "Failed"
    //wants to use sys.exc_info here to fetch the info it contains

for me print "Failed" itself is not getting executed in the above mentioned scanerio.
please provide me a peace of code for the same.

Thanks and Regards
Garima

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