Skip to content

utils.PdfReadError ➔ errors.PdfReadError (Breaking Change in 1.27.6) #779

@js-truework

Description

@js-truework

Filing this so that others who update a patch version of the repo and wonder why some lines broke will be able to find it:

In 1.27.6, all errors were moved to PyPDF2.errors (in commit 1f0fbf3)

So if you were previously importing PdfReadError from PyPDF2.utils and are no longer able to, you need to change your import to get PdfReadError from PyPDF2.errors.

Metadata

Metadata

Assignees

Labels

is-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions