diff --git a/cps/book_formats.py b/cps/book_formats.py index bc9e889e..ea381b2b 100644 --- a/cps/book_formats.py +++ b/cps/book_formats.py @@ -15,7 +15,7 @@ try: from wand.image import Image from wand import version as ImageVersion use_generic_pdf_cover = False -except ImportError as e: +except (ImportError, RuntimeError) as e: logger.warning('cannot import Image, generating pdf covers for pdf uploads will not work: %s', e) use_generic_pdf_cover = True try: diff --git a/cps/templates/layout.html b/cps/templates/layout.html index 5e05db7d..d0260db6 100644 --- a/cps/templates/layout.html +++ b/cps/templates/layout.html @@ -100,8 +100,8 @@ {% endfor %}