This won't work in CPython 2.4. You have to use nested try blocks. http://docs.python.org/release/2.4/ref/try.html

try:
    try:
    except:
finally: