Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, if there existed any notes in the target deck that didn't have one of the hanzi fields, the `get_hanzi` step would fail as a result of `cleanup` raising a `ValueError` if it received `text=None`. This PR modifies the logic so that presence of a `hanzi` field is verified before getting the `hanzi` itself. It also modifies the behavior such that cards that do not have usages filled are marked as failed. Otherwise, the user doesn't know why many cards did not have usages filled. Relevant to jdlorimer#177.
- Loading branch information