diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-06-15 12:09:53 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-06-15 12:09:53 +0000 |
commit | 042d5a692311387caa014ce114f8e373929530fb (patch) | |
tree | 1c5d6f514ea98a2ee0f9d7d3cf883580da758384 /fs/multifs.py | |
parent | afe15d10d899ba916b1e8170a8969a495f4dc86d (diff) | |
download | pyfilesystem-git-042d5a692311387caa014ce114f8e373929530fb.tar.gz |
some error-handling simplifications
Diffstat (limited to 'fs/multifs.py')
-rw-r--r-- | fs/multifs.py | 6 |
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() |