Error handling in file generation (Pythonic way: with / decorators?)

xavim xavier.martinezhidalgo at gmail.com
Wed Aug 29 11:07:41 CEST 2007


On Aug 29, 10:58 am, xavim <xavier.martinezhida... at gmail.com> wrote:
> (...)
>     try:
> (...)
>     except:
>         os.remove(dictpath)

This should read::

    try:
        (...)
    except:
        os.remove(dictpath)
        raise

Sorry.




More information about the Python-list mailing list