From 02f3d7a25e98bd716760693b60e04a5d1d57ae76 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 3 Jul 2015 15:07:11 +0800 Subject: [PATCH] Just ignore all OSError for rm_rf --- script/lib/util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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): -- 2.43.0