Talk Python To Me cover image

#404: Clean Code in Python

Talk Python To Me

Code Review - Is There a Way to Catch Multiple Exceptions?

3min Snip

00:00
Play full episode
The accept star, which is that going to be maybe Python? Oh, that's new. I don't know how to search for it, because it seems like the star, well, whatever, I can just describe. But it's really interesting because you can catch multiple exceptions. It doesn't make this cleaner or simpler to go with it only complicates it. The idea of like smaller code blocks, I think, good advice there. And narrow your exception blocks, meaning put only code in the try, except that's can actually raise that exception. That's a 311 thing. So it'll be a while till we see that really coming along.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode