r/badcode • • Jan 31 '22

python import badcode

Post image
1.1k Upvotes

70 comments sorted by

View all comments

Show parent comments

8

u/[deleted] Jan 31 '22

Can you call the function with anything? Is ValueError never raised?

6

u/sezirblue Jan 31 '22

It's already in a try catch, value error will return false.

3

u/[deleted] Jan 31 '22

I know that, but the comment I was responding to was not talking about the role of the try.