Skip to content

Commit

Permalink
fix: allow empty select_pages again (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
mg6 authored Oct 18, 2024
1 parent 8ff4055 commit 1411594
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py_zerox/pyzerox/core/zerox.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ async def zerox(
# If select_pages is a single integer, convert it to a list for consistency
if isinstance(select_pages, int):
select_pages = [select_pages]

# Sort the pages to maintain consistency
select_pages = sorted(select_pages)
if select_pages is not None:
select_pages = sorted(select_pages)

# Ensure the output directory exists
if output_dir:
Expand Down

0 comments on commit 1411594

Please sign in to comment.