Skip to content
Snippets Groups Projects
Commit bfb997ae authored by gyulaid's avatar gyulaid
Browse files

Grabber support in gen_dict

parent 472ecc89
Branches
Tags
No related merge requests found
...@@ -137,7 +137,10 @@ def gen_dict(list_of_dicts): ...@@ -137,7 +137,10 @@ def gen_dict(list_of_dicts):
for _dict in list_of_dicts: for _dict in list_of_dicts:
try: try:
if isinstance(_dict["value"], str):
return_dict[_dict["name"]] = _dict["value"] return_dict[_dict["name"]] = _dict["value"]
else:
return_dict[_dict["name"]] = grab_from(_dict["value"])
except KeyError: except KeyError:
raise ConfigException(f"Invalid dict item: {_dict}") raise ConfigException(f"Invalid dict item: {_dict}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment