Commit 0dc38117 by rfkelly0

convert ENAMETOOLONG into a PathError

parent dd7ea21f
...@@ -244,6 +244,8 @@ def convert_os_errors(func): ...@@ -244,6 +244,8 @@ def convert_os_errors(func):
if sys.platform == "win32": if sys.platform == "win32":
if e.errno in (13,): if e.errno in (13,):
raise ResourceInvalidError(path,opname=opname,details=e),None,tb raise ResourceInvalidError(path,opname=opname,details=e),None,tb
if e.errno == errno.ENAMETOOLONG:
raise PathError(path,details=e),None,tb
raise OperationFailedError(opname,details=e),None,tb raise OperationFailedError(opname,details=e),None,tb
return wrapper return wrapper
......
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