summaryrefslogtreecommitdiff
path: root/Lib/os.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-23 00:09:01 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-23 00:09:01 +0200
commit345e78e5660ae5dc3943661963858e66ccdcaa87 (patch)
treede1a290f024dcea92128cf2fbce5c3f4962ef89b /Lib/os.py
parent3987e26e7547fdd71112e70caad3e037ef8257aa (diff)
parent0bddc9eb15b88b22676aa516740f3ebd20fb8bb1 (diff)
downloadcpython-git-345e78e5660ae5dc3943661963858e66ccdcaa87.tar.gz
Issue #25860: os.fwalk() no longer skips remaining directories when error occurs.
Original patch by Samson Lee.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 2b89b93d63..13a42c331e 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -514,7 +514,7 @@ if {open, stat} <= supports_dir_fd and {listdir, stat} <= supports_fd:
except OSError as err:
if onerror is not None:
onerror(err)
- return
+ continue
try:
if follow_symlinks or path.samestat(orig_st, stat(dirfd)):
dirpath = path.join(toppath, name)