Stamets@lemmy.world to Lemmy Shitpost@lemmy.world · 2 days agoThe Legends is among uslemmy.worldimagemessage-square62fedilinkarrow-up1596arrow-down113
arrow-up1583arrow-down1imageThe Legends is among uslemmy.worldStamets@lemmy.world to Lemmy Shitpost@lemmy.world · 2 days agomessage-square62fedilink
minus-squareTja@programming.devlinkfedilinkarrow-up3·edit-21 day agoNot only nested ifs. It’s not even correct (doesn’t check for activity existing). And it’s not even pythonic (ask for forgiveness, not for permission). Just access the thing, catch the exception and be done with it.
Not only nested ifs. It’s not even correct (doesn’t check for activity existing). And it’s not even pythonic (ask for forgiveness, not for permission). Just access the thing, catch the exception and be done with it.