From 525900fe849d277c88fcb7ad324fc8391d0dfc9c Mon Sep 17 00:00:00 2001 From: SebF Date: Sun, 23 Jan 2022 14:14:45 +0100 Subject: [PATCH] conserver un tag sans clef de traduction --- rdoopy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdoopy/utils.py b/rdoopy/utils.py index bddaf6a..1a8f9bf 100644 --- a/rdoopy/utils.py +++ b/rdoopy/utils.py @@ -255,7 +255,7 @@ class Utils: """Traduit le champ tag des éléments de data avec dict""" for element in data["elements"]: - if tag in element["tags"]: + if tag in element["tags"] and tag in dictionnaire.keys(): element["tags"][tag] = dictionnaire[element["tags"][tag]] return data