`except OSError` – the `os.error` thing is an ancient wart and no one should use it anymore