From a78eaa57db9c8c5aae0f90eafc17c77b1a4d6029 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 31 Mar 2022 13:12:15 +0200 Subject: [PATCH] Fix variable name in find_property_by_cellname's error path --- sbysrc/sby_design.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbysrc/sby_design.py b/sbysrc/sby_design.py index 6dfbaec..dc18350 100644 --- a/sbysrc/sby_design.py +++ b/sbysrc/sby_design.py @@ -97,7 +97,7 @@ class SbyModule: for prop in self: if cell_name == prop.name.translate(str.maketrans(trans_dict)): return prop - raise KeyError(f"No such property: {smt2_name}") + raise KeyError(f"No such property: {cell_name}") def design_hierarchy(filename): design_json = json.load(filename) -- 2.30.2