Skip to content

Commit

Permalink
bug fix for _get_cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
djl11 committed Nov 7, 2024
1 parent 6479a9d commit 89a580d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unify/utils/_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _get_cache(fn_name: str, kw: Dict[str, Any]) -> Optional[Any]:
if i == len(idx_list) - 1:
typ = type_str_to_type[type_str]
if issubclass(typ, BaseModel) or issubclass(typ, Log):
item[idx] = type_str_to_type[type_str](**item[idx][-1])
item[idx] = type_str_to_type[type_str](**item[idx])
else:
raise Exception(f"Cache indexing found for unsupported type: {typ}")
break
Expand Down

0 comments on commit 89a580d

Please sign in to comment.