Commit cef1c5d3 authored by Sebastien Bourdeauducq's avatar Sebastien Bourdeauducq
Browse files

record: better exception code

parent 89bf704b
......@@ -42,8 +42,8 @@ class Record:
pos_fields = fields
for hop in path:
pos_self = getattr(pos_self, hop)
lu = list(filter(lambda x: x[0] == hop, pos_fields))
try:
lu = list(filter(lambda x: x[0] == hop, pos_fields))
pos_fields = lu[0][1]
except IndexError:
n = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment