# Pastebin WQIAkNGo def openfh(): raise Exception("foo") try: f = openfh() finally: f.close()