From 0edb94b0a23b549ee775d9326848cd0a0f9f56d0 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 25 May 2019 15:13:35 +0200 Subject: [PATCH] tools (common/template): fixed theme parsing when there is no "/" in parenthesis --- sat/tools/common/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/tools/common/template.py b/sat/tools/common/template.py index 37cd330d..e7571700 100644 --- a/sat/tools/common/template.py +++ b/sat/tools/common/template.py @@ -117,7 +117,7 @@ class TemplateLoader(jinja2.BaseLoader): theme_data = template[1:theme_end] theme_splitted = theme_data.split(u'/') if len(theme_splitted) == 1: - site, theme = u"", theme_splitted + site, theme = u"", theme_splitted[0] elif len(theme_splitted) == 2: site, theme = theme_splitted else: