Exception-handling

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Fri Feb 24 05:33:29 EST 2006


Odd-R.:
>I thought Exception would catch all exceptions. 

Try this:

    import sys

    try:
        pass # your code here
    except:
        e = sys.exc_value()

Either to catch everything, or to get a hold on e.

-- 
René Pijlman



More information about the Python-list mailing list