202305050953-programming_handling_errors

Use try/except clauses and catch specific errors in order to be explicit about which types of errors are expected and which ones are not.

E.g. use except FileNotFoundError

Errors and exceptions in Python