]> khamidou — GitHub mirrors - electron.git/commitdiff
Just ignore all OSError for rm_rf
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 07:07:11 +0000 (15:07 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 07:07:11 +0000 (15:07 +0800)
script/lib/util.py

index 109e7254017dc350b3bf7e409ef98fb77a4ae87e..d7559ff7f718fb58ff299f5696a9ea15744c98ac 100644 (file)
@@ -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):