From 32300b7d8cfde33c428df6fe52a1b019198b0615 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Wed, 19 Feb 2025 02:12:17 +0800 Subject: fix(cru-py): config item. --- tools/cru-py/cru/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/cru-py/cru/list.py') diff --git a/tools/cru-py/cru/list.py b/tools/cru-py/cru/list.py index 9d210b7..216a561 100644 --- a/tools/cru-py/cru/list.py +++ b/tools/cru-py/cru/list.py @@ -97,7 +97,7 @@ class CruUniqueKeyList(Generic[_T, _K]): def get(self, key: _K) -> _T: value = self.get_or(key) - if value is CruNotFound: + if value is CruNotFound.VALUE: raise KeyError(f"Key {key} not found!") return value # type: ignore -- cgit v1.2.3