global exception catching

Hilbert hilbert at microsoft.com
Thu Feb 27 01:10:30 EST 2003


Hello,

Is there a way to catch a "global" exception in a python
program (meaning that if there would be an error
during execution it could call a function before exiting)?

I have a program that creates large temp files and in case
of any unforseen problems I still need to clean up before
exiting.


Thanks,
Hilbert







More information about the Python-list mailing list