If you want to do something only if the file exists (or does not), use os.path.isfile(filename) -- https://mail.python.org/mailman/listinfo/python-list
- Re: correct way to catch exception with Python '... Steven D'Aprano
- Re: correct way to catch exception with Pyt... Ganesh Pal
- Re: correct way to catch exception with... Michael Torrie
- Re: correct way to catch exception with... Steven D'Aprano
- Re: correct way to catch exception ... Ganesh Pal
- Re: correct way to catch exception with Pyt... Marko Rauhamaa
- Re: correct way to catch exception with... Peter Otten
- Re: correct way to catch exception ... Marko Rauhamaa
- Re: correct way to catch except... Marko Rauhamaa
- Re: correct way to catch exception with Python '... Thomas 'PointedEars' Lahn
- Re: correct way to catch exception with Python '... woooee
- Re: correct way to catch exception with Pyt... Matt Wheeler
- Re: correct way to catch exception with Pyt... Steven D'Aprano
- Re: correct way to catch exception with... Steve D'Aprano
- Re: correct way to catch exception ... Ned Batchelder
- Re: correct way to catch except... Ned Batchelder
- Re: correct way to catch e... Michael Torrie
- Re: correct way to catch except... Steve D'Aprano
- Re: correct way to catch e... Grant Edwards
- Re: correct way to catch e... Marko Rauhamaa
- Re: correct way to catch e... Grant Edwards