diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-19 02:12:17 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-19 02:42:56 +0800 |
commit | b7a1118ba097197b8dad50794f24dafd0235db86 (patch) | |
tree | e03fe9469b19908b2072dd5ca3ce7f2b745da882 /tools/cru-py/cru/list.py | |
parent | 4c5df72057fe02257e243de37930a47425a84722 (diff) | |
download | crupest-b7a1118ba097197b8dad50794f24dafd0235db86.tar.gz crupest-b7a1118ba097197b8dad50794f24dafd0235db86.tar.bz2 crupest-b7a1118ba097197b8dad50794f24dafd0235db86.zip |
fix(cru-py): config item.
Diffstat (limited to 'tools/cru-py/cru/list.py')
-rw-r--r-- | tools/cru-py/cru/list.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |