diff sat/tools/common/template.py @ 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 8ca12f30f61f
children ab2696e34d29
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: