When NOT to catch them
When the cause is likely a bug
need the traceback to find the cause!
When the caller can catch it
keep exception handling in outer layers
When you don't know what to do
try:
receive_message()
except:
print "An error occurred!"
Previous slide
Next slide
Back to first slide
View graphic version