r/badcode • • Jul 14 '21

python Try/Except in Python - Sigh

Post image
662 Upvotes

93 comments sorted by

View all comments

Show parent comment

0

u/Attack_Bovines Jul 14 '21

You would also have to except IndexErrors too, which should be a code smell.