changeset 2952:d8857e913309

tools (common/template): fixed theme parsing when there is no "/" in parenthesis
author Goffi <goffi@goffi.org>
date Sat, 25 May 2019 15:13:35 +0200
parents c8cd5c30fb2e
children 3caf460bc125
files sat/tools/common/template.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/tools/common/template.py	Tue May 14 20:16:45 2019 +0200
+++ b/sat/tools/common/template.py	Sat May 25 15:13:35 2019 +0200
@@ -117,7 +117,7 @@
             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: