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 | c93dfd784038393e24d74ef8c7b8e3e142cc025d (patch) | |
tree | 6fad418acfeb45123c446326aeacef1a09d59a84 /tools/cru-py/cru/list.py | |
parent | b524986daf378cfe7aeafddafa98e9f978d26729 (diff) | |
download | crupest-c93dfd784038393e24d74ef8c7b8e3e142cc025d.tar.gz crupest-c93dfd784038393e24d74ef8c7b8e3e142cc025d.tar.bz2 crupest-c93dfd784038393e24d74ef8c7b8e3e142cc025d.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 |