Skip to content

Commit 9fa33ac

Browse files
authored
[Fix bug] utils.py (#1083)
Error when retrieving values from dictionary
1 parent 693947f commit 9fa33ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ragas/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def emit_warning(*args, **kwargs):
149149
def get_or_init(
150150
dictionary: t.Dict[str, t.Any], key: str, default: t.Callable[[], t.Any]
151151
) -> t.Any:
152-
_value = dictionary.get("key")
152+
_value = dictionary.get(key)
153153
value = _value if _value is not None else default()
154154

155155
return value

0 commit comments

Comments
 (0)