Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
cef1c5d3
Commit
cef1c5d3
authored
12 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
record: better exception code
parent
89bf704b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
migen/corelogic/record.py
migen/corelogic/record.py
+1
-1
No files found.
migen/corelogic/record.py
View file @
cef1c5d3
...
...
@@ -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
=
[]
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment