Catching Exceptions.

Fuzzyman fuzzyman at gmail.com
Mon Sep 27 16:28:35 EDT 2004


On Mon, 27 Sep 2004 08:44:52 -0700, "Keith Bolton"
<Keith.Bolton at batescapital.com> wrote:

>I am handling exceptions currently using try, except.  Generally I don't
>handle specific exceptions and am catching all.
>Then if an exception occurs, I would like to capture that error string.
> However, in the documentation it seems like 
>there is not a way to get the extra str data if you are handling all
>exceptions and not specifically.  Is there?
>
>thanks
>
>-keith

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259180

Above link is a simple recipe that will just extract the text of an
exception.

HTH

Regards,


Fuzzy

http://www.voidspace.org.uk/atlantibits/pythonutils.html




More information about the Python-list mailing list