Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: RECAP Email error when merging the attachment page for a sealed document #4836

Open
sentry-io bot opened this issue Dec 17, 2024 · 1 comment
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 17, 2024

This has happened once so far, but the solution seems simple.

We currently have a condition to avoid merging attachments if the docket entry is sealed; however, this condition does not apply when the entry itself is not sealed but the main document is, as in this case.

We should also consider the possibility that the main document is sealed while its attachments are not. So, it seems safer to avoid merging attachments if no valid attachment data is returned by Juriscraper.

Sentry Issue: COURTLISTENER-8VG

AttributeError: 'NoneType' object has no attribute 'court_id'
(2 additional frame(s) were not displayed)
...
  File "cl/recap/tasks.py", line 2774, in process_recap_email
    all_attachment_rds = get_and_merge_rd_attachments(
  File "cl/recap/tasks.py", line 2605, in get_and_merge_rd_attachments
    pq_status, msg, rds_affected = async_to_sync(process_recap_attachment)(
  File "cl/recap/tasks.py", line 759, in process_recap_attachment
    court = await Court.objects.aget(id=pq.court_id)

Filed by: @albertisfu

@mlissner
Copy link
Member

I'll put this on the January sprint where a bunch of these kinds of things are piling up. Thanks for filing.

@mlissner mlissner moved this to Backlog Jan 6 - Jan 17 in Sprint (Web Team) Dec 17, 2024
@mlissner mlissner moved this from Backlog Jan 13 - Jan 24 to To Do in Sprint (Web Team) Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do
Development

No branches or pull requests

2 participants