diff --git a/src/pathcomp/frontend/service/algorithms/KDisjointPathAlgorithm.py b/src/pathcomp/frontend/service/algorithms/KDisjointPathAlgorithm.py index 03d9295be6f9a9fafb23de6f4cffaeb0604ce15e..eac91501a284981918e462f56ec44146b8a27b52 100644 --- a/src/pathcomp/frontend/service/algorithms/KDisjointPathAlgorithm.py +++ b/src/pathcomp/frontend/service/algorithms/KDisjointPathAlgorithm.py @@ -199,7 +199,7 @@ class KDisjointPathAlgorithm(_Algorithm): algorithm.link_list = self.remove_traversed_links(algorithm.link_list, path_endpoints) self.json_reply = dict() - response_list = self.json_reply.get('response-list', []) + response_list = self.json_reply.setdefault('response-list', []) for service_key,paths in service_to_paths.items(): response = {'serviceId': { 'contextId': service_key[0],