diff options
author | David Pursehouse <dpursehouse@collab.net> | 2018-11-01 11:54:10 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2018-11-06 09:25:35 +0900 |
commit | d26146de7f1b76e9f212492dd80677f16bd00cc0 (patch) | |
tree | d098bd2346a1a136d605375529b001302f18c4ea /platform_utils.py | |
parent | bd8f658823059a4b5998bea283342f80ae94e4df (diff) | |
download | git-repo-d26146de7f1b76e9f212492dd80677f16bd00cc0.tar.gz |
platform_utils: Fix exception handling in _walk_windows_impl
Change-Id: I6b79cbc4c1bbbe17ffe8361fe1544434beaa9059
Diffstat (limited to 'platform_utils.py')
-rw-r--r-- | platform_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform_utils.py b/platform_utils.py index b2cc2459..8af25d21 100644 --- a/platform_utils.py +++ b/platform_utils.py | |||
@@ -313,7 +313,7 @@ def walk(top, topdown=True, onerror=None, followlinks=False): | |||
313 | def _walk_windows_impl(top, topdown, onerror, followlinks): | 313 | def _walk_windows_impl(top, topdown, onerror, followlinks): |
314 | try: | 314 | try: |
315 | names = listdir(top) | 315 | names = listdir(top) |
316 | except error, err: | 316 | except Exception as err: |
317 | if onerror is not None: | 317 | if onerror is not None: |
318 | onerror(err) | 318 | onerror(err) |
319 | return | 319 | return |