소스 검색

platform_utils: Fix exception handling in _walk_windows_impl

Change-Id: I6b79cbc4c1bbbe17ffe8361fe1544434beaa9059
David Pursehouse 7 년 전
부모
커밋
d26146de7f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform_utils.py

+ 1 - 1
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