mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
raise keyerror(key) in facts
This commit is contained in:
parent
e3805476af
commit
eac6324fcb
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class Fact(object):
|
|||
try:
|
||||
return [f.value for f in self.fields if f.name == key][0]
|
||||
except IndexError:
|
||||
raise KeyError
|
||||
raise KeyError(key)
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue