From 05a49ca129263632a4d21ef46a672def6e5bc53c Mon Sep 17 00:00:00 2001 From: Lee Bush Date: Tue, 17 Dec 2024 08:10:53 -0700 Subject: [PATCH] fix incorrect comments for "bail if not ..." for WAV and image cases. --- src/markitdown/_markitdown.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/markitdown/_markitdown.py b/src/markitdown/_markitdown.py index a7fb28a..041e56e 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