-
Notifications
You must be signed in to change notification settings - Fork 556
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
Passing a string as a page number raises IndexError instead of TypeError. #2961
Comments
I tried to fix it, but my changes don't come through when I install the fixed package. When patching the installed file directly, however, my changes are effective. If anyone could recommend what I need to do to have my fix to come through when installing, please let me know. |
PyMuPDF in git changed a week or two ago to default to installing the rebased implementation as module So you should probably be patching [Apart from that, i'm wondering whether it might be better to simply do |
Thank you! |
I signed the CLA. Is anything else required for this PR to be applied? |
I haven't looked at the proposed code yet. But as a reminder: |
[Reopening until the fix is released.] |
This is fixed in release candidate 1.23.9rc2; see: #2996 |
Fixed in 1.23.9. |
Description of the bug
raises
IndexError
:Which is misleading, since the page 0 happens to be in the document, it's just being addressed wrongly.
How to reproduce the bug
raises
IndexError
:Which is misleading, since the page 0 happens to be in the document, it's just being addressed wrongly.
PyMuPDF version
1.23.9rc1
Operating system
MacOS
Python version
3.12
The text was updated successfully, but these errors were encountered: