From: Cheng Zhao Date: Fri, 3 Jul 2015 07:07:11 +0000 (+0800) Subject: Just ignore all OSError for rm_rf X-Git-Tag: v0.29.0~1^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=02f3d7a25e98bd716760693b60e04a5d1d57ae76;p=electron.git Just ignore all OSError for rm_rf --- diff --git a/script/lib/util.py b/script/lib/util.py index 109e7254..d7559ff7 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -133,9 +133,8 @@ def make_zip(zip_file_path, files, dirs): def rm_rf(path): try: shutil.rmtree(path) - except OSError as e: - if e.errno != errno.ENOENT and e.errno != errno.EIO: - raise + except OSError: + pass def safe_unlink(path):