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