From 765a6a18786074c5bfbb018a85a1c1d0e11136eb Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 30 Jan 2021 15:56:22 -0800 Subject: [PATCH] uncomment error handling for bad shelf id --- bookwyrm/views/shelf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/views/shelf.py b/bookwyrm/views/shelf.py index 05049109e..82f98db66 100644 --- a/bookwyrm/views/shelf.py +++ b/bookwyrm/views/shelf.py @@ -125,8 +125,8 @@ def shelve(request): identifier=request.POST.get('shelf'), user=request.user ).first() - #if not desired_shelf: - # return HttpResponseNotFound() + if not desired_shelf: + return HttpResponseNotFound() if request.POST.get('reshelve', True): try: