[Tutor] handling exception raising in atexit registered function

Opher Lubzens anton.garou at gmail.com
Tue Apr 21 15:01:39 CEST 2015


Hi, I am developing an automated testing script in python which will, among
other things, send an email when it is done. For this I would like to send
an email when an exception is raised as well - since it already has a
cleanup function registered with atexit, this is the logical place to do
it. However, I didn't find a good HOWTO on a cleanup function like that
identifying an exception has been raised and reacting to it.

thanks,
Opher


More information about the Tutor mailing list