From 4f9e6a715f6cd1aa6d6711be2ed844b40450bc9d Mon Sep 17 00:00:00 2001 From: Eduardo Rosendo Date: Wed, 30 Oct 2024 20:44:25 -0400 Subject: [PATCH] feat(pacer): Checks for "No matter of public record" message --- juriscraper/pacer/reports.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/juriscraper/pacer/reports.py b/juriscraper/pacer/reports.py index fe0489b83..3ddfc8b62 100644 --- a/juriscraper/pacer/reports.py +++ b/juriscraper/pacer/reports.py @@ -293,6 +293,11 @@ def download_pdf( if b"You do not have access to this transcript." in r.content: error = f"Unable to get transcript. {pacer_case_id=}, {url=}" + if b"No matter of public record" in r.content: + error = ( + f"No matter of public record has been filed. " + f"{pacer_case_id=}, {url=}" + ) sealed_document_phrases = [ b"Sealed Document", b"Under Seal",