Skip to content

Commit

Permalink
BUG: Import exceptions from PyPDF2.errors in PyPDF2.utils (#780)
Browse files Browse the repository at this point in the history
Closes #779
  • Loading branch information
MartinThoma authored Apr 19, 2022
1 parent ac2aeea commit 90683ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PyPDF2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@

from PyPDF2.errors import STREAM_TRUNCATED_PREMATURELY, PdfStreamError

# See https://github.com/py-pdf/PyPDF2/issues/779
from PyPDF2.errors import PyPdfError, PdfReadError, PageSizeNotDefinedError, PdfReadWarning # noqa

try:
import builtins
from typing import Dict
Expand Down

0 comments on commit 90683ed

Please sign in to comment.