Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Sep 28, 2022
1 parent b8a8aac commit ab0dda9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions metplus/util/config_metplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1492,17 +1492,19 @@ def find_indices_in_config_section(regex, config, sec='config',
regex = re.compile(regex)
for conf in all_conf:
result = regex.match(conf)
if result is not None:
index = result.group(index_index)
if id_index:
identifier = result.group(id_index)
else:
identifier = None
if result is None:
continue

if index not in indices:
indices[index] = [identifier]
else:
indices[index].append(identifier)
index = result.group(index_index)
if id_index:
identifier = result.group(id_index)
else:
identifier = None

if index not in indices:
indices[index] = [identifier]
else:
indices[index].append(identifier)

return indices

Expand Down

0 comments on commit ab0dda9

Please sign in to comment.