commit | d26146de7f1b76e9f212492dd80677f16bd00cc0 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Thu Nov 01 11:54:10 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Tue Nov 06 09:25:35 2018 +0900 |
tree | d098bd2346a1a136d605375529b001302f18c4ea | |
parent | bd8f658823059a4b5998bea283342f80ae94e4df [diff] |
platform_utils: Fix exception handling in _walk_windows_impl Change-Id: I6b79cbc4c1bbbe17ffe8361fe1544434beaa9059
diff --git a/platform_utils.py b/platform_utils.py index b2cc245..8af25d2 100644 --- a/platform_utils.py +++ b/platform_utils.py
@@ -313,7 +313,7 @@ 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