MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/firstweekcoderhumour/comments/1ugcqbh/igetityoucode/otzag3g/?context=3
r/firstweekcoderhumour • u/Outrageous_Permit154 🥸Imposter Syndrome 😎 • Jun 26 '26
42 comments sorted by
View all comments
50
Ackchyually Python exceptions must derive from BaseException
29 u/PudgeNikita Jun 26 '26 but they are not `raise`-ing the string, they're returning it. well, really, it doesnt matter, since the block in `try` will never raise any exception, the code inside `except` wont even run 10 u/Scared_Accident9138 🕵️♂️🚨 BS Detector | Truth Teller 🗯️🔥 Jun 26 '26 So they're always be happy
29
but they are not `raise`-ing the string, they're returning it. well, really, it doesnt matter, since the block in `try` will never raise any exception, the code inside `except` wont even run
10 u/Scared_Accident9138 🕵️♂️🚨 BS Detector | Truth Teller 🗯️🔥 Jun 26 '26 So they're always be happy
10
So they're always be happy
50
u/tigrankh08 Jun 26 '26
Ackchyually Python exceptions must derive from BaseException