Catch exception in a function : Exception Handle « Exception « Python
- Python
- Exception
- Exception Handle
Catch exception in a function

def doNotRaiseException():
try:
print "In doNotRaiseException"
finally:
print "Finally executed in doNotRaiseException"
print "End of doNotRaiseException"
print "Calling doNotRaiseException"
doNotRaiseException()
Related examples in the same category