forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
analyze_single_patentconstructs a pathpatents/{patent_id}.pdfand reads it from disk, but does not download the PDF first. This silently fails if the file is absent, producing confusing errors.Work
analyze_single_patent.FileNotFoundErrorwith an actionable message.Acceptance Criteria
analyze_single_patentwith a patent that has no cached PDF either downloads it automatically or raises a descriptive error (not a silent failure or genericFileNotFoundError).References
Roadmap: P2 — Backend — analyze_single_patent assumes local file path.