Browse Source

Just ignore all OSError for rm_rf

Cheng Zhao 9 years ago
parent
commit
02f3d7a25e
1 changed files with 2 additions and 3 deletions
  1. 2 3
      script/lib/util.py

+ 2 - 3
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):