From: Cheng Zhao Date: Fri, 3 Jul 2015 06:46:26 +0000 (+0800) Subject: WindowsError is a subclass of OSError X-Git-Tag: v0.29.0~1^2~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2717556a92a3d54969107c85fdbb2bc0acaab00e;p=electron.git WindowsError is a subclass of OSError --- diff --git a/script/lib/util.py b/script/lib/util.py index 5e8933d0..a79a40f7 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -133,11 +133,11 @@ 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: raise - except WindowsError: # pylint: disable=E0602 - pass def safe_unlink(path):