Skip to content

Commit

Permalink
Merge pull request #927 from xxyzz/ko
Browse files Browse the repository at this point in the history
[ko] fix exception in low quality pages
  • Loading branch information
xxyzz authored Nov 28, 2024
2 parents 65a6e81 + ed7c4f6 commit 462713f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wiktextract/extractor/fr/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"informel": "informal", # Modèle:informel
"familier": "familiar", # Modèle:familier
"très familier": "very-familiar", # Modèle:très familier
# "populaire": "", # Modèle:populaire
"populaire": "colloquial", # Modèle:populaire
"vulgaire": "vulgar", # Modèle:vulgaire
"langage enfantin": "childish", # Modèle:enfantin
# Catégorie:Modèles de thématique
Expand Down
2 changes: 1 addition & 1 deletion src/wiktextract/extractor/ko/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def translate_raw_tags(data: WordEntry) -> None:
data.tags.append(tr_tag)
elif isinstance(tr_tag, list):
data.tags.extend(tr_tag)
elif raw_tag in TOPICS:
elif hasattr(data, "topics") and raw_tag in TOPICS:
data.topics.append(TOPICS[raw_tag])
else:
raw_tags.append(raw_tag)
Expand Down

0 comments on commit 462713f

Please sign in to comment.