Answer the question
In order to leave comments, you need to log in
Missing an error?
Is there a way to handle any errors so that it is found but the script doesn't stop? Say 'pass' is used. Can I have an example?
Answer the question
In order to leave comments, you need to log in
try:
# Код, который может привести к ошибке
except ErrorType: # Тип ошибки(KeyError, ValueError и т.п.
# Код, который выполнится после ошибки
# Тоже код который выполнится после
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question