You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
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
Filed by: @albertisfu
The text was updated successfully, but these errors were encountered: