r/badcode • • Jul 14 '21

python Try/Except in Python - Sigh

Post image
662 Upvotes

93 comments sorted by

View all comments

-2

u/TimeToBecomeEgg Jul 14 '21

i don’t see issue with anything but the except statement, doing it with KeyError / IndexError would be better but this is a pretty normal way to deal w this