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

sd extract_from_text sometimes fails #1169

Open
grossir opened this issue Sep 12, 2024 · 0 comments
Open

sd extract_from_text sometimes fails #1169

grossir opened this issue Sep 12, 2024 · 0 comments

Comments

@grossir
Copy link
Contributor

grossir commented Sep 12, 2024

The regex matching for the docket is failing, we only have 4 events:

docket = re.findall(r"#\d+.*-.-\w{3}", scraped_text[:100])[0]

'#30485-aff in pt & rev in pt-JMK\n2024 S.D. 57\n\n    '
'#30590, #30604-dismiss-MES\n2024 S.D. 55\n\n\n\n       '
'#30348-aff in pt & rev in pt-SPM\n2024'
''#30161-aff in pt & rev in pt-SRJ\n2024 S.D. 39\n\n               '

Sentry Issue: COURTLISTENER-7WF

IndexError: list index out of range
  File "cl/scrapers/tasks.py", line 183, in extract_doc_content
    update_document_from_text(opinion, juriscraper_module)
  File "cl/scrapers/tasks.py", line 64, in update_document_from_text
    metadata_dict = site.extract_from_text(opinion.plain_text or opinion.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant