proper KeyError
handling in of
This commit is contained in:
parent
c9f3f5ac5c
commit
226bf1b6ad
@ -22,7 +22,7 @@ class AtOf(Generic[K, V]):
|
||||
def of(key: K) -> V:
|
||||
try:
|
||||
return bucket[key]
|
||||
except IndexError:
|
||||
except (IndexError, KeyError):
|
||||
raise Implicit
|
||||
|
||||
return at, of
|
||||
|
Loading…
Reference in New Issue
Block a user