Skip to content

Commit 697dcc4

Browse files
committed
If an exception is raised earlier in field validation, the
position field may not be set when we get to this point and try to retrieve the value of a different field than the one we're processing. Don't cause a new exception in that case. - Legacy-Id: 6416
1 parent 3e668a1 commit 697dcc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_ballot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(self, *args, **kwargs):
103103

104104
def clean_discuss(self):
105105
entered_discuss = self.cleaned_data["discuss"]
106-
entered_pos = self.cleaned_data["position"]
106+
entered_pos = self.cleaned_data.get("position", "norecord")
107107
if entered_pos.blocking and not entered_discuss:
108108
raise forms.ValidationError("You must enter a non-empty discuss")
109109
return entered_discuss

0 commit comments

Comments
 (0)