Skip to content
Snippets Groups Projects
Commit 9e830d86 authored by Robert Latta's avatar Robert Latta
Browse files

fixed index out of range error

parent 46294b68
No related branches found
No related tags found
No related merge requests found
......@@ -498,7 +498,8 @@ def _get_dashboard_data(ifc, possible_names):
def _get_l2_customer_names(description):
info = description.upper().split('#')[0].split('|')[0].split()[1:]
yield info[1]
if info[0] in ['CUSTOMER', 'RE_INTERCONNECT'] and info[2]:
if info[0] in ['CUSTOMER', 'RE_INTERCONNECT'] \
and len(info) > 2 and info[2]:
yield info[2]
def _get_customer_name(description):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment