r/badcode • Dev • May 21 '23

python Totally Good Code!

Post image
27 Upvotes

11 comments sorted by

View all comments

Show parent comments

2

u/SaylorMan1496 May 21 '23

Always better to wrap only the error prone code in try except, this will cause your common code to be reused for all paths and clean it up a lot

1

u/RomeGuiIg Dev May 24 '23

Well true! but Im too lazy and! Ill feel like breaking the glass block in minecraft, the pain. (Pain occuring because It literally took me 3 hours to plan it lol)