From 6f6fd63cfe71f7d89b5385c430601c1b499e0436 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Thu, 5 Oct 2023 17:11:46 +0200 Subject: [PATCH] make minify_html optional --- papyri/render.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/papyri/render.py b/papyri/render.py index 1e5305ca..e62484a8 100644 --- a/papyri/render.py +++ b/papyri/render.py @@ -19,7 +19,11 @@ from quart import send_from_directory, Response, redirect from quart_trio import QuartTrio from rich.logging import RichHandler -import minify_html + +try: + import minify_html +except ModuleNotFoundError: + minify_html = None from . import config as default_config from . import take2