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 | 32300b7d8cfde33c428df6fe52a1b019198b0615 (patch) | |
tree | b9eb3d9ae54a9c1d9134ac21081b0caf4f9737c6 /tools/cru-py/cru/list.py | |
parent | 71ba81145a5ee686a6f48cd528a732893eb70be1 (diff) | |
download | crupest-32300b7d8cfde33c428df6fe52a1b019198b0615.tar.gz crupest-32300b7d8cfde33c428df6fe52a1b019198b0615.tar.bz2 crupest-32300b7d8cfde33c428df6fe52a1b019198b0615.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 |