From ca251d7793ac8296c80045fe3f204fc2cea8db1f Mon Sep 17 00:00:00 2001 From: RaenonX Date: Tue, 22 Dec 2020 20:30:31 -0600 Subject: [PATCH] FIX - Not using versioned name whenever it's available Signed-off-by: RaenonX --- dlparse/export/entry/text.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dlparse/export/entry/text.py b/dlparse/export/entry/text.py index fac32e41..d4cfc9a7 100644 --- a/dlparse/export/entry/text.py +++ b/dlparse/export/entry/text.py @@ -33,6 +33,7 @@ def __post_init__(self, asset_multilingual: "MultilingualAssetBase", labels: Uni for label in labels: try: self.text_dict[lang_code] = asset_multilingual.get_text(lang_code, label) + break # Name found, early terminate the loop except TextLabelNotFoundError: continue # Label not found, try to use the next label