added another check to see if option exists
@@ -194,12 +194,12 @@ def file_queue(path, template_path="/vent/"):
n_name = 'network-mapping'
n_map = []
if vent_config.has_section(n_name):
+ # make sure that the options aren't empty
+ if vent_config.options(n_name):
options = vent_config.options(n_name)
for option in options:
if vent_config.get(n_name, option):
n_map.append(vent_config.get(n_name, option))
- # make sure that the options aren't empty
- # returns tuple(status, values)
orig_path = path
path = str(n_map[0]) + " " + path
except Exception as e: # pragma: no cover
