summaryrefslogtreecommitdiff
path: root/fs/multifs.py
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-06-15 12:09:53 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2009-06-15 12:09:53 +0000
commit042d5a692311387caa014ce114f8e373929530fb (patch)
tree1c5d6f514ea98a2ee0f9d7d3cf883580da758384 /fs/multifs.py
parentafe15d10d899ba916b1e8170a8969a495f4dc86d (diff)
downloadpyfilesystem-git-042d5a692311387caa014ce114f8e373929530fb.tar.gz
some error-handling simplifications
Diffstat (limited to 'fs/multifs.py')
-rw-r--r--fs/multifs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/multifs.py b/fs/multifs.py
index 0e1e357..3454e64 100644
--- a/fs/multifs.py
+++ b/fs/multifs.py
@@ -136,7 +136,7 @@ class MultiFS(FS):
fs_file = fs.open(path, mode, **kwargs)
return fs_file
- raise FileNotFoundError(path)
+ raise ResourceNotFoundError(path)
finally:
self._lock.release()
@@ -188,7 +188,7 @@ class MultiFS(FS):
if fs.exists(path):
fs.remove(path)
return
- raise FileNotFoundError(path)
+ raise ResourceNotFoundError(path)
finally:
self._lock.release()
@@ -199,7 +199,7 @@ class MultiFS(FS):
if fs.isdir(path):
fs.removedir(path, recursive)
return
- raise DirectoryNotFoundError(path)
+ raise ResourceNotFoundError(path)
finally:
self._lock.release()