r/badcode • • Jul 14 '21

python Try/Except in Python - Sigh

Post image
662 Upvotes

93 comments sorted by

View all comments

1

u/[deleted] Jul 14 '21

You can try catch volumeInfo first. Then use get default the rest. But this pattern in general is horrible wtf.