From e3439df0d7db02b7528f42801c61f5eb4a88fffb Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Tue, 24 Nov 2020 10:00:55 +0100 Subject: [PATCH] Fix: running wiki without --frontend-url broke startup --- truewiki/views/sitemap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truewiki/views/sitemap.py b/truewiki/views/sitemap.py index 5e6e65b..b987fc0 100644 --- a/truewiki/views/sitemap.py +++ b/truewiki/views/sitemap.py @@ -90,7 +90,7 @@ def invalidate_cache() -> None: def click_sitemap(frontend_url): global FRONTEND_URL - if frontend_url.endswith("/"): + if frontend_url and frontend_url.endswith("/"): frontend_url = frontend_url[:-1] FRONTEND_URL = frontend_url