Skip to content

Python tool for converting files and office documents to Markdown.

fix incorrect comments for "bail if not ..." for WAV and image cases.

Lee Bush05a49ca12926
diff --git a/src/markitdown/_markitdown.py b/src/markitdown/_markitdown.py
index a7fb28a1..041e56e6 100644
--- a/src/markitdown/_markitdown.py
+++ b/src/markitdown/_markitdown.py
@@ -681,7 +681,7 @@ class WavConverter(MediaConverter):
"""
def convert(self, local_path, **kwargs) -> Union[None, DocumentConverterResult]:
- # Bail if not a XLSX
+ # Bail if not a WAV
extension = kwargs.get("file_extension", "")
if extension.lower() != ".wav":
return None
@@ -797,7 +797,7 @@ class ImageConverter(MediaConverter):
"""
def convert(self, local_path, **kwargs) -> Union[None, DocumentConverterResult]:
- # Bail if not a XLSX
+ # Bail if not an image
extension = kwargs.get("file_extension", "")
if extension.lower() not in [".jpg", ".jpeg", ".png"]:
return None