From b0584e863898569f63d53b4d5dd2df6b764d12e4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 27 Oct 2025 11:54:17 +0100 Subject: 🐛 fix archaeological files forms when instruction deadline is removed (refs #6484) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_files/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_files/forms.py') diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index 353880075..5dd48da71 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -683,7 +683,7 @@ class FileFormInstruction(CustomForm, IshtarForm): else: deadline = reception_date + datetime.timedelta(days=delay) self.fields["instruction_deadline"].initial = deadline.strftime("%Y-%m-%d") - except (TypeError, ValueError): + except (TypeError, ValueError, KeyError): pass def clean_numeric_reference(self): -- cgit v1.2.3