record: better exception code
This commit is contained in:
parent
89bf704b2b
commit
cef1c5d3af
|
@ -42,8 +42,8 @@ class Record:
|
|||
pos_fields = fields
|
||||
for hop in path:
|
||||
pos_self = getattr(pos_self, hop)
|
||||
try:
|
||||
lu = list(filter(lambda x: x[0] == hop, pos_fields))
|
||||
try:
|
||||
pos_fields = lu[0][1]
|
||||
except IndexError:
|
||||
n = []
|
||||
|
|
Loading…
Reference in New Issue