Skip to content

Commit 0daddb5

Browse files
committed
Changed a log.assertion() to provide more information about the unexpected situation.
- Legacy-Id: 17770
1 parent 26e85ce commit 0daddb5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/submit/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def validate_submission_rev(name, rev):
133133

134134
expected = 0
135135
existing_revs = [int(i.rev) for i in Document.objects.filter(name=name) if i.rev and i.rev.isdigit() ]
136-
log.assertion('[ i.rev for i in Document.objects.filter(name=name) if not (i.rev and i.rev.isdigit()) ]', [])
136+
unexpected_revs = [ i.rev for i in Document.objects.filter(name=name) if not (i.rev and i.rev.isdigit()) ]
137+
log.assertion('unexpected_revs', [])
137138
if existing_revs:
138139
expected = max(existing_revs) + 1
139140

0 commit comments

Comments
 (0)