How can I catch all exception in python?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Mar 27 14:22:02 EDT 2007


En Tue, 27 Mar 2007 15:09:18 -0300, yinglcs at gmail.com <yinglcs at gmail.com>  
escribió:

> 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) {
>  ...
> }

See the Further Reading section on that same page.
Exceptions are covered in the Python Tutorial here:  
http://docs.python.org/tut/node10.html

-- 
Gabriel Genellina




More information about the Python-list mailing list