Skip to content

Commit

Permalink
fix: handle probes for unknown ballot ids (#7289)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Apr 3, 2024
1 parent 960ede9 commit ed5e486
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ietf/doc/views_doc.py
Expand Up @@ -1548,6 +1548,7 @@ def document_ballot_content(request, doc, ballot_id, editable=True):
def document_ballot(request, name, ballot_id=None):
doc = get_object_or_404(Document, name=name)
all_ballots = list(BallotDocEvent.objects.filter(doc=doc, type="created_ballot").order_by("time"))
ballot = None
if not ballot_id:
if all_ballots:
ballot = all_ballots[-1]
Expand Down

0 comments on commit ed5e486

Please sign in to comment.