"Barry A. Warsaw" <bwarsaw at cnri.reston.va.us> writes: > >>>>> "HN" == Hrvoje Niksic <hniksic at srce.hr> writes: > > | except (IOError, os.error), detail: > > Or you could just catch EnvironmentError. :) It probably didn't exist in Python 1.5.1, under which I was writing the code in question.