Skip to content

Commit 69ad0af

Browse files
JorjMcKiejulian-smith-artifex-com
authored andcommitted
Update __init__.py
1 parent c9e3569 commit 69ad0af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5282,7 +5282,7 @@ def pages(self, start: OptInt =None, stop: OptInt =None, step: OptInt =None) ->
52825282
Arguments have the same meaning as for the range() built-in.
52835283
"""
52845284
if not self.page_count:
5285-
raise ValueError("document has no pages")
5285+
return
52865286
# set the start value
52875287
start = start or 0
52885288
while start < 0:

0 commit comments

Comments
 (0)