mirror of
https://github.com/blazickjp/arxiv-mcp-server.git
synced 2025-07-25 20:38:49 +03:00
removed unlink of pdf files
This commit is contained in:
@@ -43,7 +43,6 @@ class PaperManager:
|
||||
async with aiofiles.open(paper_md_path, "w", encoding="utf-8") as f:
|
||||
await f.write(markdown)
|
||||
|
||||
paper_pdf_path.unlink() # Remove PDF after conversion
|
||||
return True
|
||||
|
||||
except StopIteration:
|
||||
|
||||
@@ -74,7 +74,6 @@ def convert_pdf_to_markdown(paper_id: str, pdf_path: Path) -> None:
|
||||
status.completed_at = datetime.now()
|
||||
|
||||
# Clean up PDF after successful conversion
|
||||
pdf_path.unlink()
|
||||
logger.info(f"Conversion completed for {paper_id}")
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user