Skip to content

Commit 90683ed

Browse files
authored
BUG: Import exceptions from PyPDF2.errors in PyPDF2.utils (#780)
Closes #779
1 parent ac2aeea commit 90683ed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

PyPDF2/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636

3737
from PyPDF2.errors import STREAM_TRUNCATED_PREMATURELY, PdfStreamError
3838

39+
# See https://github.com/py-pdf/PyPDF2/issues/779
40+
from PyPDF2.errors import PyPdfError, PdfReadError, PageSizeNotDefinedError, PdfReadWarning # noqa
41+
3942
try:
4043
import builtins
4144
from typing import Dict

0 commit comments

Comments
 (0)