Removed un-needed try block

This commit is contained in:
Mike Young
2019-12-13 10:27:58 -05:00
parent 0eeb23c52c
commit 78485a8117

View File

@@ -44,11 +44,8 @@ def prev_page(request, bookset):
def search(request, query=None): def search(request, query=None):
if query is None: if query is None:
return render(request, "index.html", {"Books": None}) return render(request, "index.html", {"Books": None})
try: _r = Books().generic_search(query)
_r = Books().generic_search(query) return render(request, "index.html", {"Books": _r})
return render(request, "index.html", {"Books": _r})
except Exception as e:
raise
def book_set(_limit=None, _set=1): def book_set(_limit=None, _set=1):