Raise built-in open exceptions if file inaccessible
If the file is inaccessible, raise the same Exception the built-in global open() would. This makes for more specific and helpful errors. This is done by doing an experimental open() on the file and not catching anything.
Please register or sign in to comment