1

The question is related to Python:

Normally, I use except(RuntimeError) and use continue, so my code does not break while processing huge amounts of data.

However, it is harder for me to include all the types of errors that I encounter while running my code, since there are multiple possibilities. How do I just say - whatever happens - don't break but just continue, instead of including (RuntimeError, TypeError, ValueError and so on)

1 Answer 1

1

Have you tried using only except with no parameters?

try:

 code

except:

 continue
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.