Closed cip91sk closed 7 months ago
Hi @cip91sk, thanks for this bugfix! I've added a regression test. Will merge this when the CI workflows pass.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
5f9ac0f
) 98.83% compared to head (8e4185f
) 98.83%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description of the changes
Prevents a KeyError bubbling up if the '/Type' key is not set in a field definition
Checklist
Please go over this checklist to increase the chances of your PR being worked on in a timely manner. Deviations are allowed with proper justification (see previous section).
For bug fixes (delete if not applicable)
Additional comments
While extracting signature info from files received from a third party, pyHanko failed on me with the KeyError Exception while trying to raw_get '/Type'. I apologise if I missed something in the PR, and while I'm here, thank you for your great work!