summaryrefslogtreecommitdiff
path: root/fs/errors.py
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2010-10-12 22:07:40 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2010-10-12 22:07:40 +0000
commit07499b3ea567a13cfebc235bdc3cc0bd830fdc76 (patch)
tree210a13c486b21d44b8137e5748137b3a099a1252 /fs/errors.py
parent803816d3f13575567d0509a861360664bb31946f (diff)
downloadpyfilesystem-git-07499b3ea567a13cfebc235bdc3cc0bd830fdc76.tar.gz
Fix various DAVFS issues from issue #40
* don't close the socket when handing off to RemoteFileBuffer * remove redundant check for "w" mode in the 404 case * properly close the socket in the isdir() case * add readline() method to RemoteFileBuffer
Diffstat (limited to 'fs/errors.py')
-rw-r--r--fs/errors.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/errors.py b/fs/errors.py
index 113e21d..2bacd11 100644
--- a/fs/errors.py
+++ b/fs/errors.py
@@ -240,6 +240,8 @@ 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:
+ raise RemoteConnectionError(opname,path=path,details=e),None,tb
if e.errno == errno.EACCES:
if sys.platform == "win32":
if e.args[0] and e.args[0] == 32: