try:
for i in list:
try:
#python code...
except Exception,e:
#error handler
except Exception, e:
#error handler
If in the nested try/except it errors out, does the loop continue running?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it does, since you caught the exception. Although if you just have a comment there and not a real line of code, I think Python may complain. (I haven’t written Python code in a while.)