Retain documentation version when navigating paginated links.

The old code always raised an exception as the variable being checked
was not defined at that point. Now, it checks the variable that one
expects to be set.
This commit is contained in:
Jonathan S. Katz
2019-01-06 16:32:02 -05:00
parent 1d78793add
commit df278a084b

View File

@ -290,7 +290,7 @@ def search(request):
conn.close()
totalhits = int(hits[-1][5])
try:
if quoted_suburl:
if suburl:
quoted_suburl = urllib.quote_plus(suburl)
else:
quoted_suburl = ''