aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy
diff options
context:
space:
mode:
Diffstat (limited to 'python/tidy')
-rw-r--r--python/tidy/servo_tidy/tidy.py3
1 files changed, 3 insertions, 0 deletions
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: