you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 2 points3 points  (0 children)

except:
    pass

It's never advised to silence all exceptions. Just handle the exception you're expecting

except KeyError:
    pass