Am Tue, 23 May 2006 12:47:05 -0700 schrieb Carl J. Van Arsdall: > Hey python people, > > I'm interested in using the try/finally clause to ensure graceful > cleanup regardless of how a block of code exits. However, I still am > interested in capturing the exception.
You can reraise the exception: try: something() except: cleanup() raise # reraise the caught exception -- Thomas Güttler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de Spam Catcher: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list