do replacement only if replacement is still string

This commit is contained in:
iLLiCiTiT 2021-06-29 14:04:37 +02:00
parent 13aec9cb57
commit 7daf1d3d0b

View file

@ -145,7 +145,10 @@ def _fill_schema_template_data(
# Only replace the key in string
template = template.replace(replacement_string, value)
output = template.replace("__dbcb__", "{").replace("__decb__", "}")
if isinstance(template, STRING_TYPE):
output = template.replace("__dbcb__", "{").replace("__decb__", "}")
else:
output = template
else:
output = template