Skip to content

Commit

Permalink
fix: prevent error when no file selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards committed Jul 20, 2024
1 parent 02baeef commit 0555eef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ietf/meeting/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0555eef

Please sign in to comment.