Skip to content

Commit

Permalink
bug: left return.
Browse files Browse the repository at this point in the history
  • Loading branch information
JingofXin committed Dec 19, 2024
1 parent d238337 commit 0c12dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lazyllm/components/utils/downloader/model_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _do_download(self, model='', call_back=None):
full_model_dir = os.path.join(self.cache_dir, self.model_source, model_dir)

try:
self.hub_downloader.download(model, full_model_dir, call_back)
return self.hub_downloader.download(model, full_model_dir, call_back)
# Use `BaseException` to capture `KeyboardInterrupt` and normal `Exceptioin`.
except BaseException as e:
lazyllm.LOG.warning(f"Download encountered an error: {e}")
Expand Down

0 comments on commit 0c12dce

Please sign in to comment.