Please report the error string:

```python
except IOError as e:
    parser.error("{path} could not be read: {e}".format(path=path, e=e))
```