diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-06-18 00:16:14 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-06-18 00:16:14 +0000 |
commit | 4e2303ec645aed8b1417802aeddf6d7a1f98d827 (patch) | |
tree | 46c1516301e6c6149fd4adfb1b465fdcc0e5bf2f /fs/errors.py | |
parent | 85e6c5592f8f7d88bdef3ffab2f8a27a1396d5c0 (diff) | |
download | pyfilesystem-git-4e2303ec645aed8b1417802aeddf6d7a1f98d827.tar.gz |
convert EPERM => PermissionDeniedError
Diffstat (limited to 'fs/errors.py')
-rw-r--r-- | fs/errors.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/errors.py b/fs/errors.py index e4f7f43..e32ee7f 100644 --- a/fs/errors.py +++ b/fs/errors.py @@ -208,6 +208,8 @@ def convert_os_errors(func): raise UnsupportedError(opname,details=e),None,tb if e.errno == errno.ENOSPC: raise StorageSpaceError(opname,details=e),None,tb + if e.errno == errno.EPERM: + raise PermissionDeniedError(opname,details=e),None,tb if e.errno == errno.EACCES: if sys.platform == "win32": if e.args[0] and e.args[0] == 32: |