Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/unit/inference/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def _hf_model_list() -> List[ModelInfo]:
model_data = {"cache_time": 0, "model_list": []}
if os.path.isfile(cache_file_path):
with open(cache_file_path, 'rb') as f:
model_data = pickle.load(f)
try:
model_data = pickle.load(f)
except Exception as e:
Comment thread
tjruwase marked this conversation as resolved.
print(f"Error loading cache file {cache_file_path}: {e}")

current_time = time.time()

Expand Down