forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #183
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 the pathpatents/{patent_id}.pdfand reads from disk, but does not trigger a download first. If the PDF has not been fetched previously, the method fails silently or raises a file-not-found error.Work
FileNotFoundErrorwith a helpful message, and document the prerequisite in the docstring.Acceptance Criteria
analyze_single_patentwith a valid patent ID that has not been downloaded either downloads the PDF automatically, or raises a descriptive error explaining the prerequisite.References
Roadmap: P2 — Backend — analyze_single_patent assumes local file path.
Triaged by repo manager. Assigned to @AI-Engineer (developer). Bug fix: ensure analyze_single_patent downloads PDF before attempting to read from disk. P2 priority.
This issue has been addressed. Resolved by PR #55 (fix single patent download). Closing.