asking for permission instead of forgiveness
You should catch exceptions instead of checking for them.
Assume files, variables, keys, etc. exist, and catch them if they don't.
Creates more concise code
You should catch exceptions instead of checking for them.
Assume files, variables, keys, etc. exist, and catch them if they don't.
Creates more concise code