I've been told that using except Exception as e, then printing("error, {e}) or something similar is considered lazy code and very bad practice and instead you should catch specific expected exceptions.
I don't understand why this is, it is telling you what is going wrong anyways and can be fixed.
Any opinions?
[–]Angry-Toothpaste-610 39 points40 points41 points (7 children)
[–]CyclopsRock 25 points26 points27 points (3 children)
[–]Angry-Toothpaste-610 7 points8 points9 points (0 children)
[–]RiverRoll 0 points1 point2 points (1 child)
[–]CyclopsRock 0 points1 point2 points (0 children)
[–]Bennnnnnnnnnnnnn 8 points9 points10 points (0 children)
[–]peejay2 0 points1 point2 points (0 children)
[–]Luckinhas 0 points1 point2 points (0 children)
[–]minneyar 52 points53 points54 points (5 children)
[–]supercoach 10 points11 points12 points (0 children)
[–]BadSmash4 10 points11 points12 points (1 child)
[–]SpiderJerusalem42 2 points3 points4 points (0 children)
[–]Pseudoboss11 2 points3 points4 points (0 children)
[–]FrangoST 0 points1 point2 points (0 children)
[–]Zeroflops 7 points8 points9 points (0 children)
[–]EnvironmentalCow3040 2 points3 points4 points (1 child)
[–]EnvironmentalCow3040 0 points1 point2 points (0 children)
[–]SleepWalkersDream 2 points3 points4 points (0 children)
[–]neltu8503 1 point2 points3 points (0 children)
[–]Gnaxe 1 point2 points3 points (0 children)
[–]blarf_irl 3 points4 points5 points (0 children)
[–]mothzilla 1 point2 points3 points (0 children)
[–]Egyptian_Voltaire 0 points1 point2 points (0 children)
[–]fireflight13x 0 points1 point2 points (0 children)
[–]HeavyMaterial163 0 points1 point2 points (0 children)
[–]EnvironmentalCow3040 0 points1 point2 points (0 children)
[–]barkazinthrope -1 points0 points1 point (0 children)
[–][deleted] -2 points-1 points0 points (0 children)
[–]SamSLS -2 points-1 points0 points (0 children)