Skip to content

cs_CZ thesaurus converter: guard missing type column - #58

Closed
ashishkrshaw wants to merge 1 commit into
LibreOffice:masterfrom
ashishkrshaw:fix/cs-cz-thesaurus-terms-length
Closed

cs_CZ thesaurus converter: guard missing type column#58
ashishkrshaw wants to merge 1 commit into
LibreOffice:masterfrom
ashishkrshaw:fix/cs-cz-thesaurus-terms-length

Conversation

@ashishkrshaw

Copy link
Copy Markdown

In cs_CZ/thesaurus/dictionary-to-thesaurus.py, parse() checks len(terms) >= 2 and then reads terms[2]. For input rows with only two tab-separated columns, this can raise IndexError and stop conversion.\n\nThis patch changes the guard to len(terms) >= 3 before reading terms[2], keeping typ empty when the optional third column is missing. The converter now handles two-column rows safely.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution. We use GitHub as a read-only mirror, so please submit your patch into our own code review system: https://wiki.documentfoundation.org/Development/GetInvolved

@github-actions github-actions Bot closed this Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant