Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Argueta committed Jul 29, 2021
1 parent 12cd2f4 commit 877e942
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/error_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def __exit__(
_errno = exc_value.errno
fserror = os_errors.get(_errno, errors.OperationFailed)
if _errno == errno.EACCES and sys.platform == "win32":
if getattr(exc_value, "args", None) == 32: # pragma: no cover
error_args = getattr(exc_value, "args", (None,))
if error_args and error_args[0] == 32: # pragma: no cover
fserror = errors.ResourceLocked
reraise(fserror, fserror(self._path, exc=exc_value), traceback)

Expand Down

0 comments on commit 877e942

Please sign in to comment.