From 9857039a6bc0d8e581ab022cd454f8eea85dc435 Mon Sep 17 00:00:00 2001 From: Alan Vekselman Date: Wed, 5 Oct 2022 16:49:37 -0300 Subject: [PATCH] hdl.ast: fix non-existing variable in SignalKey.__lt__ --- amaranth/hdl/ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):