Skip to content

Commit 73fcf51

Browse files
fix: handle both rev is None and '' in document_main (ietf-tools#4887)
1 parent 017b5f5 commit 73fcf51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def document_main(request, name, rev=None, document_html=False):
162162
snapshot = False
163163

164164
gh = None
165-
if rev != None:
165+
if rev:
166166
# find the entry in the history
167167
for h in doc.history_set.order_by("-time"):
168168
if rev == h.rev:

0 commit comments

Comments
 (0)