fix(security): add nosec for pickle load (B113 #686)

This commit is contained in:
TPTBusiness
2026-04-29 18:17:26 +02:00
parent e191416da3
commit ae07f21520
@@ -111,7 +111,7 @@ def load_and_process_pdfs_by_azure_document_intelligence(path: Path) -> dict[str
def extract_first_page_screenshot_from_pdf(pdf_path: str) -> Image:
if not Path(pdf_path).exists():
doc = fitz.open(stream=io.BytesIO(requests.get(pdf_path).content), filetype="pdf")
doc = fitz.open(stream=io.BytesIO(requests.get(pdf_path).content), filetype="pdf") # nosec B113
else:
doc = fitz.open(pdf_path)
page = doc.load_page(0)