We can just catch `OSError`.

See http://mail.python.org/pipermail/python-list/2009-November/558704.html