Stamets@lemmy.world to Lemmy Shitpost@lemmy.world · 1 month agoThe Legends is among usimagemessage-square62linkfedilinkarrow-up1605arrow-down113
arrow-up1592arrow-down1imageThe Legends is among usStamets@lemmy.world to Lemmy Shitpost@lemmy.world · 1 month agomessage-square62linkfedilink
minus-squareTja@programming.devlinkfedilinkarrow-up3·edit-21 month 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.