diff --git a/strings.py b/strings.py index 541d2e86..52f2b8f3 100644 --- a/strings.py +++ b/strings.py @@ -16,7 +16,7 @@ def safely_format_string(string: str, words: typing.Dict[str, str] = None, ignor else: escaped = {} for key in words: - escaped[key] = words[key].replace("<", "<").replace(">", ">") + escaped[key] = str(words[key]).replace("<", "<").replace(">", ">") return string.format_map(SafeDict(**escaped))