-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
feat(pacer): Updates logic to create error message. #1227
Conversation
@mlissner I looked at other queues with the same error message to see if there was a common cause. I found these messages that we're not handling properly:
The first message is similar to the one we're fixing in this PR, but not exactly the same. I'll update the PR to handle it too. For the second message, I can also add logic to handle that case in this PR. But what kind of error message should we show in this case? We already have checks for the third message: juriscraper/juriscraper/pacer/reports.py Lines 260 to 267 in 14c85d0
However, we don't currently check if the same error persists after a second attempt to retrieve the PDF. What kind of error message would be most helpful in this situation? |
I have no idea what "No matter of public record has been filed" means. I guess it means it's sealed? We could just pass the same message through to the user? For the third error, I guess passing through the original message makes the most sense too? |
This language is intended to avoid the implication that there is a sealed document behind the link. Maybe it's a deleted document. Maybe it's a document number that has not been used. Maybe it's a document that has been restricted without being sealed (err?). And, of course, maybe it's an FRCP 5.2(c) document (usually "You do not have permission to view this document.") |
Great, in that case, feels like we should just use that error message too. |
- Uses a list of sealed document phrases for more efficient and readable checking.
02aa830
to
4a611bc
Compare
@mlissner Ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, now we surely have all the error messages. :)
While debugging another issue in the
recap-fetch
API, I noticed that our code was incorrectly identifying certain sealed documents on PACER. This led to a misleading error message being added to the fetch queue:To address this issue, I've added a new phrase to the sealed document check logic and refactored the if statement
Here's another example of a sealed document: https://ecf.vawd.uscourts.gov/doc1/19111488805