From e0e562137ce8d985c5bda8e65add5edb8409c25f Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Sun, 25 Aug 2024 23:54:51 +0200 Subject: [PATCH] Add fallback value for data['message'] (#33185) Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com> --- python/wpt/grouping_formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/wpt/grouping_formatter.py b/python/wpt/grouping_formatter.py index f093e0f8922..231c5b2c9e6 100644 --- a/python/wpt/grouping_formatter.py +++ b/python/wpt/grouping_formatter.py @@ -306,7 +306,7 @@ class ServoFormatter(mozlog.formatters.base.BaseFormatter, ServoHandler): # Print reason that tests are skipped. if data["status"] == "SKIP": self.number_skipped += 1 - lines = [f"SKIP {data['test']}", f"{data['message']}\n"] + lines = [f"SKIP {data['test']}", f"{data.get('message', '')}\n"] output_for_skipped_test = UnexpectedResult.wrap_and_indent_lines(lines, indent=" ") return self.generate_output(text=output_for_skipped_test, new_display=self.build_status_line())