More "minor" fix
This commit is contained in:
@@ -71,16 +71,14 @@ def highway_impl(_prompt, _id, _workflow, _way_in, _query, kwargs):
|
|||||||
continue
|
continue
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
name = elem["name"][1:]
|
name = elem["name"][1:]
|
||||||
|
|
||||||
if (
|
if ("data", name) in _way_in:
|
||||||
("data", name) in _way_in
|
if elem["type"] == "*" or elem["type"] == _way_in[("type", name)]:
|
||||||
# elem["type"] == _way_in[("type", name)] # [TODO] Maybe relax the rule a bit?
|
res.append(_way_in[("data", name)])
|
||||||
) or elem["type"] == "*":
|
else:
|
||||||
res.append(_way_in[("data", name)])
|
raise Exception(f"Output \"{name}\" is not defined or is not of type \"{elem['type']}\". Expected \"{_way_in[('type', name)]}\".")
|
||||||
else:
|
|
||||||
raise Exception(f"Output \"{name}\" is not defined or is not of type \"{elem['type']}\". Expected \"{_way_in[('type', name)]}\".")
|
|
||||||
|
|
||||||
_way_in[("kind")] = "highway"
|
_way_in[("kind")] = "highway"
|
||||||
_way_in[("id")] = _id
|
_way_in[("id")] = _id
|
||||||
|
|||||||
Reference in New Issue
Block a user