From: Cheng Zhao Date: Fri, 3 Jul 2015 06:40:32 +0000 (+0800) Subject: One failing rm should not block others X-Git-Tag: v0.29.0~1^2~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f87a4b9a04729e9100c914855f4d2665ac00ee46;p=electron.git One failing rm should not block others --- diff --git a/script/clean.py b/script/clean.py index 094f70df..cd72230a 100755 --- a/script/clean.py +++ b/script/clean.py @@ -11,14 +11,11 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) def main(): os.chdir(SOURCE_ROOT) - try: - rm_rf('node_modules') - rm_rf('dist') - rm_rf('out') - rm_rf('spec/node_modules') - rm_rf('vendor/brightray/vendor/download/libchromiumcontent') - except WindowsError: # pylint: disable=E0602 - pass + rm_rf('node_modules') + rm_rf('dist') + rm_rf('out') + rm_rf('spec/node_modules') + rm_rf('vendor/brightray/vendor/download/libchromiumcontent') if __name__ == '__main__': diff --git a/script/lib/util.py b/script/lib/util.py index a995b605..5e8933d0 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -136,6 +136,8 @@ def rm_rf(path): except OSError as e: if e.errno != errno.ENOENT: raise + except WindowsError: # pylint: disable=E0602 + pass def safe_unlink(path):