Remove the else, it's cleaner

This commit is contained in:
NirantK
2023-09-25 17:15:44 +05:30
parent 206a633eb1
commit 4da2be9c44

View File

@@ -172,8 +172,6 @@ class Embedding(ABC):
f"https://storage.googleapis.com/qdrant-fastembed/{simple_model_name}.tar.gz",
output_path=str(model_tar_gz),
)
else:
raise ValueError(f"Could not find {model_tar_gz}")
self.decompress_to_cache(targz_path=str(model_tar_gz), cache_dir=cache_dir)
assert model_dir.exists(), f"Could not find {model_dir} in {cache_dir}"