Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion juriscraper/pacer/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ def download_pdf(
b"Document is Sealed",
b"This document is SEALED",
]
if any(phrase in r.content for phrase in sealed_document_phrases):
if any(
phrase.lower() in r.content.lower()
for phrase in sealed_document_phrases
):
# See: https://ecf.almd.uscourts.gov/doc1/01712589088
# See: https://ecf.cand.uscourts.gov/doc1/035122021132
# See: https://ecf.caed.uscourts.gov/doc1/03319001890
Expand Down