sillsdev / sillsdev/machine.py

Return book name in parsing failure error

Open
#359 0 comments 0 reactions 0 assignees View on GitHub

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.

Image

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):

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.