summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-08 17:07:40 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-08 17:07:40 +0200
commit36a4a6f2c8d7f73279a43e0926eeb09da07bff63 (patch)
treef402a895f105efaca7589f1ae0340ce9a0df809e
parent6fce6af60e7c99e77fcc24084db001367a7813be (diff)
meop
-rw-r--r--lib/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/utils.py b/lib/utils.py
index 9ee55de..e537525 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -180,8 +180,9 @@ def by_name_to_by_param(by_name: dict):
by_param[param_key]["isa"] = by_name[name]["isa"]
for attribute in by_name[name]["attributes"]:
by_param[param_key][attribute].append(by_name[name][attribute][i])
- for support in by_name[name]["supports"]:
- by_param[param_key][support].append(by_name[name][support][i])
+ if "supports" in by_name[name]:
+ for support in by_name[name]["supports"]:
+ by_param[param_key][support].append(by_name[name][support][i])
# Required for match_parameter_valuse in _try_fits
by_param[param_key]["param"].append(by_name[name]["param"][i])
return by_param