Python tool for converting files and office documents to Markdown.
Fix UnboundLocalError in MarkItDown._convert (#1038)
André Menezesd0ed74fdf470
diff --git a/packages/markitdown/src/markitdown/_markitdown.py b/packages/markitdown/src/markitdown/_markitdown.pyindex 297f5541..7c8d006c 100644--- a/packages/markitdown/src/markitdown/_markitdown.py+++ b/packages/markitdown/src/markitdown/_markitdown.py@@ -312,6 +312,7 @@ class MarkItDown:def _convert(self, local_path: str, extensions: List[Union[str, None]], **kwargs) -> DocumentConverterResult:+ res: Union[None, DocumentConverterResult] = Noneerror_trace = ""# Create a copy of the page_converters list, sorted by priority.