From 79e76559068240218e2159bcb81bce68b07508b8 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:55:02 +0100 Subject: [PATCH] Fix `notification_service.py` (#27903) * fix * fix --------- Co-authored-by: ydshieh --- utils/notification_service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/notification_service.py b/utils/notification_service.py index d232809a64..969107b3f8 100644 --- a/utils/notification_service.py +++ b/utils/notification_service.py @@ -634,6 +634,9 @@ class Message: ] def get_new_model_failure_blocks(self, with_header=True): + if self.prev_ci_artifacts is None: + return {} + sorted_dict = sorted(self.model_results.items(), key=lambda t: t[0]) prev_model_results = {}