From 53098c4b41c4a513b55cff6be146d68b1ad72b54 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Mon, 10 Jul 2023 10:31:56 +0200 Subject: [PATCH] Fix exception message --- birdvisu/providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdvisu/providers.py b/birdvisu/providers.py index b9dabed..6060185 100644 --- a/birdvisu/providers.py +++ b/birdvisu/providers.py @@ -191,7 +191,7 @@ class OspfFileTopologyParser: # it must match.) dr_id, discr = tgt.lstrip(r'[').rstrip(']').split('-') candidates = list(filter(lambda vid: vid.dr_id == dr_id and vid.discriminator == discr, result.vertices)) - if len(candidates) != 1: raise OspfFileParseError(f'Multiple candidates for uniquely determined network {tgt}') + if len(candidates) != 1: raise OspfFileParseError(f'Multiple or no candidates for uniquely determined network {tgt}') tgtid = candidates[0] edge = Edge(source=src, target=tgtid, cost=cost, count=count) result.add_edge(edge)