Commit e320e69b by rfkelly0

make convert_os_errors handle EACCESS -> PermissionDeniedError

parent 13399fc3
......@@ -188,6 +188,8 @@ def convert_os_errors(func):
raise UnsupportedError(opname,details=e),None,tb
if e.errno == errno.ENOSPC:
raise StorageSpaceError(opname,details=e),None,tb
if e.errno == errno.EACCESS:
raise PermissionDeniedError(opname,details=e),None,tb
# Sometimes windows gives some random errors...
if sys.platform == "win32":
if e.errno in (13,):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment