chore: update something
Browse files- docsifer/service.py +2 -3
docsifer/service.py
CHANGED
@@ -143,14 +143,13 @@ class DocsiferService:
|
|
143 |
new_filename = f"{src.stem}{guessed_ext}"
|
144 |
tmp_path = Path(tmpdir) / new_filename
|
145 |
tmp_path.write_bytes(src.read_bytes())
|
146 |
-
if not tmp_path.exists():
|
147 |
-
raise FileNotFoundError(f"Temporary file not found: {tmp_path}")
|
148 |
|
149 |
logger.info(
|
150 |
-
"Using temp file: %s, MIME type: %s, Guessed ext: %s",
|
151 |
tmp_path,
|
152 |
mime_type,
|
153 |
guessed_ext,
|
|
|
154 |
)
|
155 |
|
156 |
# Perform HTML cleanup if requested.
|
|
|
143 |
new_filename = f"{src.stem}{guessed_ext}"
|
144 |
tmp_path = Path(tmpdir) / new_filename
|
145 |
tmp_path.write_bytes(src.read_bytes())
|
|
|
|
|
146 |
|
147 |
logger.info(
|
148 |
+
"Using temp file: %s, MIME type: %s, Guessed ext: %s, Existing: %s",
|
149 |
tmp_path,
|
150 |
mime_type,
|
151 |
guessed_ext,
|
152 |
+
tmp_path.exists(),
|
153 |
)
|
154 |
|
155 |
# Perform HTML cleanup if requested.
|