What is Nostr?
npub1p5s…4m09
2024-08-02 19:33:13

npub1p5…r4m09 on Nostr: In #Python, I’ve always felt like try excepts with try blocks of more than 1-3 ...

In #Python, I’ve always felt like try excepts with try blocks of more than 1-3 lines were anti-pattern, but I’m having trouble finding any source that corroborates that as accepted culture.

Am I being too strict here?

It’s generally accepted anti-pattern to catch more exceptions more broadly than you intend to handle, wouldn’t it also be frowned on to test more than you need to?
Author Public Key
npub1p5scnllc963w4z6cj4dcwwq5szhtcesfy0d5n4sw8djhf3csympqwr4m09