Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
FIX - Not using versioned name whenever it's available
Browse files Browse the repository at this point in the history
Signed-off-by: RaenonX <[email protected]>
  • Loading branch information
RaenonX committed Dec 23, 2020
1 parent 6c27a81 commit ca251d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dlparse/export/entry/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ca251d7

Please sign in to comment.