diff --git a/amaranth/hdl/ast.py b/amaranth/hdl/ast.py index 80e826c..abba9ab 100644 --- a/amaranth/hdl/ast.py +++ b/amaranth/hdl/ast.py @@ -1798,7 +1798,7 @@ class SignalKey: def __lt__(self, other): if type(other) is not SignalKey: - raise TypeError("Object {!r} cannot be compared to a SignalKey".format(signal)) + raise TypeError("Object {!r} cannot be compared to a SignalKey".format(other)) return self._intern < other._intern def __repr__(self):