IOError undocumented

The Base.Filesystem module tends to throw IOError exceptions but these aren’t documented at all. I want to be able to catch these and determine the exact problem (ie incorrect permissions, file doesn’t exist, etc) but the only way I can see to do this is to check the code field.

As none of this is documented I’m reluctant to do this. Is there a better way? Or should these be documented? (If so I’ll probably make a start on it as it seems pretty straightforward)

I think it would be great to add some documentation.

Here are some relevant issues in the bug tracker: #47771 and #7841.

1 Like