Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JorjMcKie authored and julian-smith-artifex-com committed Nov 15, 2024
1 parent c9e3569 commit 69ad0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5282,7 +5282,7 @@ def pages(self, start: OptInt =None, stop: OptInt =None, step: OptInt =None) ->
Arguments have the same meaning as for the range() built-in.
"""
if not self.page_count:
raise ValueError("document has no pages")
return
# set the start value
start = start or 0
while start < 0:
Expand Down

0 comments on commit 69ad0af

Please sign in to comment.