mirror of
https://git.codelinaro.org/clo/tools/repo.git
synced 2025-05-20 22:06:22 +08:00
platform_utils: Fix exception handling in _walk_windows_impl
Change-Id: I6b79cbc4c1bbbe17ffe8361fe1544434beaa9059
This commit is contained in:
@ -313,7 +313,7 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
|
||||
def _walk_windows_impl(top, topdown, onerror, followlinks):
|
||||
try:
|
||||
names = listdir(top)
|
||||
except error, err:
|
||||
except Exception as err:
|
||||
if onerror is not None:
|
||||
onerror(err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user