exception question

Martin v. Löwis loewis at informatik.hu-berlin.de
Tue Apr 9 05:09:35 EDT 2002


"Henning Peters" <pete at dexterslab.de> writes:

> 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. 

You should use sys.exc_info().

HTH,
Martin



More information about the Python-list mailing list