Fix variable name in find_property_by_cellname's error path
authorJannis Harder <me@jix.one>
Thu, 31 Mar 2022 11:12:15 +0000 (13:12 +0200)
committerJannis Harder <me@jix.one>
Thu, 31 Mar 2022 11:12:15 +0000 (13:12 +0200)
sbysrc/sby_design.py

index 6dfbaecb9dd9dab6dee8975ceb9bd7e85ccb2666..dc183504596ac403a6c902bfba49eb4b61ad39d8 100644 (file)
@@ -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)