How can I catch all exception in python?

yinglcs at gmail.com yinglcs at gmail.com
Tue Mar 27 14:09:18 EDT 2007


I read the document here about exception handling in python:

http://www.diveintopython.org/file_handling/index.html

Can you please tell me how can I catch all exception in python?
like this in Java:
try {
 ....
} catch (Throwable t) {
 ...
}




More information about the Python-list mailing list