Remove non-ascii chars from SCSS to keep pipeline from tripping.
[redakcja.git] / src / cover / views.py
index a99c8d5..8a6c93a 100644 (file)
@@ -35,7 +35,7 @@ def preview(request, book, chunk=None, rev=None):
     else:
         revision = chunk.publishable()
         if revision is None:
     else:
         revision = chunk.publishable()
         if revision is None:
-            raise Http404
+            revision = chunk.head
     xml = revision.materialize().encode('utf-8')
 
     try:
     xml = revision.materialize().encode('utf-8')
 
     try: