From 8a3ab600dbee518576e81dab6730de95c48fa218 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 1 Mar 2019 18:02:22 +0100 Subject: [PATCH] ulteriori cose --- strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))