From 0555eef13a105dbfd3cd9e19f93d6ce1fd7a41c7 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Sat, 20 Jul 2024 12:47:43 -0700 Subject: [PATCH] fix: prevent error when no file selected --- ietf/meeting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/meeting/views.py b/ietf/meeting/views.py index 2948a2e715..253f2852ff 100644 --- a/ietf/meeting/views.py +++ b/ietf/meeting/views.py @@ -2790,7 +2790,8 @@ def clean_content(self): def clean_file(self): submission_method = self.cleaned_data.get("submission_method") if submission_method == "upload": - return super().clean_file() + if self.cleaned_data.get("file", None) is not None: + return super().clean_file() return None def clean(self):