Skip to content

Commit

Permalink
Make: Create missing directories
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Apr 2, 2024
1 parent 99048d4 commit 39cf7c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/usearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def sqlite_found_or_downloaded(self) -> Optional[str]:
warnings.warn("Will download `usearch_sqlite` binary from GitHub.", UserWarning)
try:
source_url = self.determine_download_url(self.version, source_filename)
os.makedirs(download_dir, exist_ok=True)
urllib.request.urlretrieve(source_url, local_path)
except HTTPError as e:
# If the download fails due to HTTPError (e.g., 404 Not Found), like a missing lib version
Expand Down

0 comments on commit 39cf7c3

Please sign in to comment.