Skip to content

Commit facaae8

Browse files
authored
DOC: Modify Raises section (#3226)
1 parent 4fd07f8 commit facaae8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pypdf/_doc_common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ def get_num_pages(self) -> int:
343343
The number of pages of the parsed PDF file.
344344
345345
Raises:
346-
PdfReadError: if file is encrypted and restrictions prevent
347-
this action.
346+
PdfReadError: If restrictions prevent this action.
348347
349348
"""
350349
# Flattened pages will not work on an encrypted PDF;

0 commit comments

Comments
 (0)