X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..4186d2daff23d0de25e2cdaeb6704d0dfe0feec1:/src/cover/views.py diff --git a/src/cover/views.py b/src/cover/views.py index 3f2c46fa..8a6c93aa 100644 --- a/src/cover/views.py +++ b/src/cover/views.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -37,7 +35,7 @@ def preview(request, book, chunk=None, rev=None): else: revision = chunk.publishable() if revision is None: - raise Http404 + revision = chunk.head xml = revision.materialize().encode('utf-8') try: