From c652995d16d18e5fc9a435f2f96aced63a4038d4 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 18 May 2016 11:07:26 +0200 Subject: Support test-tidy --faster with moved files. --- python/tidy/servo_tidy/tidy.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/tidy/servo_tidy') diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index c3c603c7c11..b05412f2dcb 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -585,6 +585,9 @@ def collect_errors_for_files(files_to_check, checking_functions, line_checking_f if print_text: print '\rChecking files for tidiness...' for filename in files_to_check: + if not os.path.exists(filename): + continue + with open(filename, "r") as f: contents = f.read() for check in checking_functions: -- cgit v1.2.3