From: Cheng Zhao Date: Fri, 3 Jul 2015 06:54:32 +0000 (+0800) Subject: WindowsError is undefined on POSIX X-Git-Tag: v0.29.0~1^2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=518ec36511254bf78b0e64bf7a7044a1fff31069;p=electron.git WindowsError is undefined on POSIX --- diff --git a/script/lib/util.py b/script/lib/util.py index a79a40f7..109e7254 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -133,10 +133,8 @@ def make_zip(zip_file_path, files, dirs): def rm_rf(path): try: shutil.rmtree(path) - except WindowsError: # pylint: disable=E0602 - pass except OSError as e: - if e.errno != errno.ENOENT: + if e.errno != errno.ENOENT and e.errno != errno.EIO: raise