Skip to content

Commit 3439f3d

Browse files
committed
Tweaked a log.assertion() case.
- Legacy-Id: 17793
1 parent b53d78a commit 3439f3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/submit/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ 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-
unexpected_revs = [ i.rev for i in Document.objects.filter(name=name) if not (i.rev and i.rev.isdigit()) ] # pyflakes:ignore
136+
unexpected_revs = [ i.rev for i in Document.objects.filter(name=name) if i.rev and not i.rev.isdigit() ] # pyflakes:ignore
137137
log.assertion('unexpected_revs', [])
138138
if existing_revs:
139139
expected = max(existing_revs) + 1

0 commit comments

Comments
 (0)