We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8929437 commit ac69d98Copy full SHA for ac69d98
1 file changed
ietf/submit/utils.py
@@ -90,7 +90,8 @@ def validate_submission_rev(name, rev):
90
return 'Revision must be between 00 and 99'
91
92
expected = 0
93
- existing_revs = [int(i.rev) for i in Document.objects.filter(name=name)]
+ existing_revs = [int(i.rev) for i in Document.objects.filter(name=name) if i.rev and i.rev.isdigit() ]
94
+ log.assertion('[ i.rev for i in Document.objects.filter(name=name) if not (i.rev and i.rev.isdigit()) ] == []')
95
if existing_revs:
96
expected = max(existing_revs) + 1
97
0 commit comments