Skip to content

Commit

Permalink
Merge pull request #4592 from v-anne/4589-RECAP-price-bug
Browse files Browse the repository at this point in the history
fix(favorites): fixing RECAP price bug in pray-and-pay emails
  • Loading branch information
mlissner authored Oct 18, 2024
2 parents 3a4b462 + 1df273f commit a0c1465
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cl/corpus_importer/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,11 @@ def update_rd_metadata(
item=rd,
)
if response.is_success:
rd.page_count = response.text
rd.page_count = int(response.text)

assert isinstance(
rd.page_count, (int, type(None))
), "page_count must be an int or None."

# Save and extract, skipping OCR.
rd.save()
Expand Down

0 comments on commit a0c1465

Please sign in to comment.