mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Removed un-needed try block
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user