Skip to content

Commit 5bc0830

Browse files
committed
Allow list search in CONTEXT
1 parent 9700816 commit 5bc0830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolium/utils/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def get_value_from_context(param, context):
615615
else:
616616
value = value[list_index][part]
617617
elif hasattr(value, part):
618-
value = value[part]
618+
value = getattr(value, part)
619619
else:
620620
if isinstance(value, dict):
621621
msg = f"'{part}' key not found in {value} value in context"

0 commit comments

Comments
 (0)