Skip to content

Commit

Permalink
Make review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 11, 2024
1 parent 4a62a51 commit 4d4921d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wacz/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,13 @@ def create_wacz(res):

if res.extra_pages:
if res.copy_pages:
print("Copying passed pages.jsonl file to WACZ")
print("Copying passed extraPages.jsonl file to WACZ")
if validate_pages_jsonl_file(res.extra_pages):
with open(res.extra_pages, "rb") as fh:
with wacz.open(extra_pages_jsonl, "w") as extra_pages_file:
shutil.copyfileobj(fh, extra_pages_file)
else:
print("Ignoring invalid extraPages.jsonl file")
else:
print("Validating extra pages file")
extra_page_data = []
Expand Down

0 comments on commit 4d4921d

Please sign in to comment.