From 1a1b913a00abcd6b736bfd17a39b44bf489c3793 Mon Sep 17 00:00:00 2001 From: Michael Villeneuve Date: Wed, 8 Jan 2025 14:34:19 +0100 Subject: [PATCH] fix: We can't assume all owners are represented in att_dict --- proposals/utils/pdf_diff_sections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/utils/pdf_diff_sections.py b/proposals/utils/pdf_diff_sections.py index 60633e0f..b4889e48 100644 --- a/proposals/utils/pdf_diff_sections.py +++ b/proposals/utils/pdf_diff_sections.py @@ -1013,7 +1013,7 @@ def get_all_attachment_sections_diff(self): att_dict = self._get_matches_from_slots(self.old_slots, self.new_slots) - for owner_num in range(len(att_dict)): + for owner_num in att_dict.keys(): proposal = self.new_p if owner_num == 0: owner_obj = proposal