Is there a way to continue after an exception ?

Daniel Fetchinson fetchinson at googlemail.com
Sat Feb 20 19:32:53 EST 2010


> I would like my program to continue on the next line after an uncaught
> exception,
> is that possible ?

try:
    # here is your error
except:
    pass

# this will get executed no matter what

See http://docs.python.org/tutorial/errors.html

HTH,
Daniel



-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown



More information about the Python-list mailing list