diff --git a/bookwyrm/views/books/books.py b/bookwyrm/views/books/books.py index 4b813459c..07ad05172 100644 --- a/bookwyrm/views/books/books.py +++ b/bookwyrm/views/books/books.py @@ -50,7 +50,9 @@ class Book(View): if not book or not book.parent_work: raise Http404() - if redirect_local_path := not user_statuses and maybe_redirect_local_path(request, book): + if redirect_local_path := not user_statuses and maybe_redirect_local_path( + request, book + ): return redirect_local_path # all reviews for all editions of the book