Merge branch 'main' into main

This commit is contained in:
Emanuele Meazzo 2025-03-12 18:19:19 +01:00 committed by GitHub
commit 7819841d38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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