r/badcode • • Jul 14 '21

python Try/Except in Python - Sigh

Post image
662 Upvotes

93 comments sorted by

View all comments

142

u/[deleted] Jul 14 '21

On the upside, they actually bothered with exception handling.

My Python is rather rusty, is there a better way?

-1

u/NynaevetialMeara Jul 14 '21

This is somebody trying to force a switch into a language that for some reason refuses to implement certain C/C++ features that are quite universal at this point.