How to handle exceptions properly in a pythonic way?

zljubisic at gmail.com zljubisic at gmail.com
Wed Nov 4 23:18:20 EST 2015


> Which would you prefer?

So if I am just checking for the ConnectionError in get_html and a new exception arises, I will have traceback to the get_html function showing that unhandled exception has happened.
Now I have to put additional exception block for managing the new exception in the get_html function and I am covered.

Is that what you wanted to say?



More information about the Python-list mailing list