diff --git a/pym/calculate/lib/cl_template.py b/pym/calculate/lib/cl_template.py index 925f7f7..931ec76 100644 --- a/pym/calculate/lib/cl_template.py +++ b/pym/calculate/lib/cl_template.py @@ -3189,7 +3189,7 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction, elif terms[2] == 'hexcode': replace = value.__repr__()[2:-1].replace('\\u0','\\x') - replace = replace.decode("UTF-8") + replace = replace.decode("UTF-8") if isinstance(replace, bytes) else replace textTemplateTmp = textTemplateTmp[:resS.start()] + replace + \ textTemplateTmp[resS.end():] return textTemplateTmp