fix: correct f-string formatting in FileConversionException (#1121)

This commit is contained in:
yushihang
2025-03-13 01:15:09 +08:00
committed by GitHub
parent af1be36e0c
commit 75140a90e2

View File

@@ -69,7 +69,7 @@ class FileConversionException(MarkItDownException):
message = f"File conversion failed after {len(attempts)} attempts:\n"
for attempt in attempts:
if attempt.exc_info is None:
message += " - {type(attempt.converter).__name__} provided no execution info."
message += f" - {type(attempt.converter).__name__} provided no execution info."
else:
message += f" - {type(attempt.converter).__name__} threw {attempt.exc_info[0].__name__} with message: {attempt.exc_info[1]}\n"