Skip to content

Commit

Permalink
Update download_models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NIXBLACK11 authored Nov 9, 2023
1 parent fbbc6fc commit 99ebbfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laser_encoders/download_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def download(self, filename: str):
def get_language_code(self, language_list: dict, lang: str) -> str:
try:
lang_3_4 = language_list[lang]
if isinstance(lang_3_4, tuple):
if isinstance(lang_3_4, list):
options = ", ".join(f"'{opt}'" for opt in lang_3_4)
raise ValueError(
f"Language '{lang_3_4}' has multiple options: {options}. Please specify using --lang."
Expand Down

0 comments on commit 99ebbfd

Please sign in to comment.