laws-africa / peachjam

Project Peach Jam
https://agp.africanlii.org
GNU General Public License v3.0
2 stars 0 forks source link

ParserError: Document is empty #1864

Closed sentry-io[bot] closed 2 months ago

sentry-io[bot] commented 3 months ago

Sentry Issue: LII-1KW

ParserError: Document is empty
(2 additional frame(s) were not displayed)
...
  File "peachjam/tasks.py", line 153, in extract_citations
    if doc.extract_citations():
  File "peachjam/models/core_document_model.py", line 580, in extract_citations
    return citation_analyser.extract_citations(self)
  File "peachjam/analysis/citations.py", line 25, in extract_citations
    return self.extract_citations_from_html(document)
  File "peachjam/analysis/citations.py", line 31, in extract_citations_from_html
    html = lxml.html.fromstring(document.content_html)