From 46980ea59d06b3061e564b0dc644fb84b3b13fc2 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Thu, 28 Sep 2023 14:19:10 +0800 Subject: [PATCH] Ignore empty French Wiktionary "exemple" template Page https://fr.wiktionary.org/wiki/topo_del_Mediterraneo_occidentale uses an empty "exemple" template: "{{exemple|lang=it}}" --- wiktextract/extractor/fr/gloss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiktextract/extractor/fr/gloss.py b/wiktextract/extractor/fr/gloss.py index fc9cef3f..3cba7635 100644 --- a/wiktextract/extractor/fr/gloss.py +++ b/wiktextract/extractor/fr/gloss.py @@ -127,5 +127,5 @@ def process_exemple_template( if len(source) > 0: example_data["source"] = clean_node(wxr, None, source) example_data["type"] = "quotation" - if len(example_data) > 0: + if "text" in example_data: gloss_data["examples"].append(example_data)