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

Fix title sometimes None #744

Merged
merged 3 commits into from Apr 15, 2022
Merged

Fix title sometimes None #744

merged 3 commits into from Apr 15, 2022

Conversation

clach04
Copy link
Contributor

@clach04 clach04 commented Apr 14, 2022

Fixes #511

@clach04
Copy link
Contributor Author

clach04 commented Apr 14, 2022

I have no idea if this is a reasonable fix, it works for me so far.

@MartinThoma MartinThoma added is-bug From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF Tiny Pull requests that make a tiny change - and thus should be easy to merge labels Apr 14, 2022
@MartinThoma MartinThoma linked an issue Apr 14, 2022 that may be closed by this pull request
@MartinThoma MartinThoma changed the title Fix issues #511 - title sometimes none Fix title sometimes None Apr 14, 2022
@MartinThoma
Copy link
Member

@clach04 Please have a look at the failing tests

Handle case when title really is None
@clach04
Copy link
Contributor Author

clach04 commented Apr 15, 2022

Thanks @MartinThoma for putting the time in to getting CI tests integrated with pull-requests, really helpful! 👍

Additional change added to handle case where title really is missing.

@codecov-commenter
Copy link

Codecov Report

Merging #744 (7a6284a) into main (012709f) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #744   +/-   ##
=======================================
  Coverage   67.81%   67.81%           
=======================================
  Files           9        9           
  Lines        3309     3309           
  Branches      782      782           
=======================================
  Hits         2244     2244           
  Misses        818      818           
  Partials      247      247           
Impacted Files Coverage Δ
PyPDF2/pdf.py 69.69% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 012709f...7a6284a. Read the comment docs.

@MartinThoma MartinThoma merged commit 29194cd into py-pdf:main Apr 15, 2022
MartinThoma added a commit that referenced this pull request Apr 15, 2022
Security (SEC):

- ContentStream_readInlineImage had potential infinite loop (#740)

Bug fixes (BUG):

- Fix merging encrypted files (#757)
- CCITTFaxDecode decodeParms can be an ArrayObject (#756)

Robustness improvements (ROBUST):

- title sometimes None (#744)

Documentation (DOC):

- Adjust short description of the package

Tests and Test setup (TST):

- Rewrite JS tests from unittest to pytest (#746)
- Increase Test coverage, mainly with filters (#756)
- Add test for inline images (#758)

Developer Experience Improvements (DEV):

- Remove unused Travis-CI configuration (#747)
- Show code coverage (#754, #755)
- Add mutmut (#760)

Miscellaneous:

- STY: Closing file handles, explicit exports, ... (#743)

All changes: 1.27.4...1.27.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-bug From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF Tiny Pull requests that make a tiny change - and thus should be easy to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pdf.getDocumentInfo().title sometimes None
3 participants