Fix error in place displayer when offset is outside valid range
Resolves #10493.
This commit is contained in:
parent
cec9f55769
commit
0d1aef889e
@ -105,7 +105,10 @@ class PlaceDisplay:
|
|||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
offset = _get_offset(parts[0], index)
|
offset = _get_offset(parts[0], index)
|
||||||
if offset is not None:
|
if offset is not None:
|
||||||
places.append(all_places[offset])
|
try:
|
||||||
|
places.append(all_places[offset])
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
elif len(parts) == 2:
|
elif len(parts) == 2:
|
||||||
start = _get_offset(parts[0], index)
|
start = _get_offset(parts[0], index)
|
||||||
end = _get_offset(parts[1], index)
|
end = _get_offset(parts[1], index)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user