Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Dec 10, 2022
1 parent 6717709 commit 7de7c4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PyPDF2/_writer.py
Expand Up @@ -1252,7 +1252,8 @@ def add_outline_item_destination(
)
)
page_destination = dest
if page_destination is None:
if page_destination is None: # deprecated
# argument is only Optional due to deprecated argument.
raise ValueError("page_destination may not be None")

if parent is None:
Expand Down

0 comments on commit 7de7c4b

Please sign in to comment.