sillsdev / sillsdev/machine.py
Return book name in parsing failure error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12
- Forks
- 3
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 5
Description
The following type of error occurs sometimes when text in a Paratext project can't be read.
Because this line is iterating through all the books in the project, the character position indicator isn't helpful unless it also returns the book name where the error occurs, as it does if the error occurs in the following try...except statement. Is it possible to include that data for file read failures, too?
FYI, here's the verse that caused the trouble in this case (2 Kings 25:16):
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the loop that iterates through all books in a Paratext project and inspect the file-read failure handling. Compare it with the following try...except statement, which already reports the book name. Done means file-read parsing errors identify the book as well as the character position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100