Commit 58fd538a by rfkelly0

fs.error: actually fix bug with missing ENONET

parent b7d69f1a
......@@ -240,7 +240,7 @@ def convert_os_errors(func):
raise StorageSpaceError(opname,path=path,details=e),None,tb
if e.errno == errno.EPERM:
raise PermissionDeniedError(opname,path=path,details=e),None,tb
if e.errno == errno.ENONET:
if hasattr(errno,"ENONET") and e.errno == errno.ENONET:
raise RemoteConnectionError(opname,path=path,details=e),None,tb
if e.errno == errno.ENETDOWN:
raise RemoteConnectionError(opname,path=path,details=e),None,tb
......
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