Skip to content

Commit

Permalink
Merge pull request #71 from olawalejuwonm/patch-1
Browse files Browse the repository at this point in the history
(#70) Fix `ValueError('Error: No valid file selected.')` when the file extension is upper case
  • Loading branch information
HenestrosaDev authored Oct 15, 2024
2 parents 6401f3d + 717830d commit 8c729bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/main_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _prepare_for_file_transcription(self, file_path: Path) -> None:
for transcription.
:return: None
"""
is_file_supported = file_path.suffix in c.SUPPORTED_FILE_EXTENSIONS
is_file_supported = file_path.suffix.lower() in c.SUPPORTED_FILE_EXTENSIONS
if file_path.is_file() and is_file_supported:
self.transcription.audio_source_path = file_path
else:
Expand Down

0 comments on commit 8c729bc

Please sign in to comment.