From d639e316414875e40a97384f71d9f5f206519e61 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 25 Nov 2017 09:41:18 -0800 Subject: [PATCH] lint: Fix check-templates handling of team.html. This prevents some unnecessary error messages when running the linter on a single file. --- tools/check-templates | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/check-templates b/tools/check-templates index a818cb88d0..bf5f12d4de 100755 --- a/tools/check-templates +++ b/tools/check-templates @@ -47,7 +47,8 @@ def check_html_templates(templates, all_dups): templates) templates = sorted(list(templates)) # Use of underscore templates <%= %>. - templates.remove('templates/zerver/team.html') + if 'templates/zerver/team.html' in templates: + templates.remove('templates/zerver/team.html') template_id_dict = build_id_dict(templates) # TODO: Clean up these cases of duplicate ids in the code