I really meant os.Error See http://docs.python.org/2/library/os.html#os.error

(we can leave OSError as os.Error is an alias).