exception question

Henning Peters pete at dexterslab.de
Tue Apr 9 04:56:03 EDT 2002


hi NG,

i am asking me, if it is possible to catch an exception and to save the
exception value in a variable?!

try:
...
except: __all_exceptions__, error:
...

normally, the second argument of except takes the variable name. the problem
is, how i should get the variable, if i want to catch ALL exceptions. i
know, that this is not a fine way, but for my project (sending debug
messages over network) it is essential...

any idea?

bye,
henning






More information about the Python-list mailing list