From 53e717381d3dca88d3636c5ca0349306a3464e8c Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Tue, 16 Jun 2020 15:36:44 +0200 Subject: [PATCH] bgpmap: Fix crash when 'peer_protocol_name' is not matched by regexp This protects against cases where the regexp expr2 is broken (such as currently with some interface names) Fixes: #64 --- lg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lg.py b/lg.py index 7b0c8ab..4a59d73 100644 --- a/lg.py +++ b/lg.py @@ -558,7 +558,7 @@ def build_as_tree_from_raw_bird_ouput(host, proto, text): path = None paths = [] net_dest = None - peer_protocol_name = None + peer_protocol_name = "" for line in text: line = line.strip()