Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ruokolt committed Feb 2, 2024
1 parent a2e9c4f commit ffd6b1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/speech2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,12 @@ def main():
pass
else:
# Given language not OK
pretty_language_list = ", ".join([f'{lang} ({short})' for lang, short in settings.supported_languages.items()])
pretty_language_list = ", ".join(
[
f"{lang} ({short})"
for lang, short in settings.supported_languages.items()
]
)
logger.warning(
f"Given language '{language}' not found among supported languages: {pretty_language_list}. Opting to detect language automatically"
)
Expand Down

0 comments on commit ffd6b1d

Please sign in to comment.