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): 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