atb033/multi_agent_path_planning

Why is a preexisting output.yaml required?

Closed this issue · 1 comments

# Write to output file
with open(args.output, 'r') as output_yaml:
try:
output = yaml.load(output_yaml, Loader=yaml.FullLoader)
except yaml.YAMLError as exc:
print(exc)

This code requires that a valid output yaml file already exists. I think it ought to gracefully handle the case that no such file exists.

Thanks for the suggestion. I do agree that it should exit gracefully. Would you like to open a PR for this?