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

Grabber support in gen_dict

parent 472ecc89
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,10 @@ def gen_dict(list_of_dicts):
for _dict in list_of_dicts:
try:
if isinstance(_dict["value"], str):
return_dict[_dict["name"]] = _dict["value"]
else:
return_dict[_dict["name"]] = grab_from(_dict["value"])
except KeyError:
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