Commit 4e2303ec by rfkelly0

convert EPERM => PermissionDeniedError

parent 85e6c559
...@@ -208,6 +208,8 @@ def convert_os_errors(func): ...@@ -208,6 +208,8 @@ def convert_os_errors(func):
raise UnsupportedError(opname,details=e),None,tb raise UnsupportedError(opname,details=e),None,tb
if e.errno == errno.ENOSPC: if e.errno == errno.ENOSPC:
raise StorageSpaceError(opname,details=e),None,tb raise StorageSpaceError(opname,details=e),None,tb
if e.errno == errno.EPERM:
raise PermissionDeniedError(opname,details=e),None,tb
if e.errno == errno.EACCES: if e.errno == errno.EACCES:
if sys.platform == "win32": if sys.platform == "win32":
if e.args[0] and e.args[0] == 32: if e.args[0] and e.args[0] == 32:
......
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