Would it be good practice to have the catch-all except statement followed by a raise statement to catch all possible exceptions and name them? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Would it be good practice to have the catch-all except statement followed by a raise statement to catch all possible exceptions and name them?

26th Jul 2016, 1:10 PM
Jay
Jay - avatar
1 Answer
0
Using raise within except (without any label) will raise the actual error..
28th Jul 2016, 12:16 PM
Prashant Shahi
Prashant Shahi - avatar