Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch ValueError when converting font encoding differences to characters #389

Merged
merged 4 commits into from
Mar 16, 2020

Conversation

pietermarsman
Copy link
Member

@pietermarsman pietermarsman commented Mar 14, 2020

Pull request

Fixes #385.

When converting font encoding differences to characters KeyError's are ignored. But other errors (like ValueError shown in #385) are not ignored. This PR adds the ValueError to the except clause.

How Has This Been Tested?

With PDF from #385. Added extra tests.

Checklist

  • I have added tests that prove my fix is effective or that my feature
    works
  • I have added docstrings to newly created methods and classes
  • I have optimized the code at least one time after creating the initial
    version
  • I have updated the README.md or I am verified that this
    is not necessary
  • I have updated the readthedocs documentation or I
    verified that this is not necessary
  • I have added a consice human-readable description of the change to
    CHANGELOG.md

@pietermarsman pietermarsman merged commit 9d7fe2d into develop Mar 16, 2020
@pietermarsman pietermarsman deleted the fix-385-catch-value-error branch February 2, 2022 21:33
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.

ValueError: invalid literal for int() with base 16
1 participant