From a27801e399db92e77d444104abaadc54100fad4d Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 15 Apr 2021 18:49:19 +0100 Subject: [PATCH] type --- bridge_master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 34a9e63..2d8e92c 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -1103,7 +1103,7 @@ class routerOBP(OPENBRIDGE): continue #If target has missed 6 (on 1 min) of keepalives, don't send - if _target_system['ENHANCED_OBP'] ['_bcka'] in _target_system and _target_system['_bcka'] < _pkt_time - 60: + if _target_system['ENHANCED_OBP'] and '_bcka' in _target_system and _target_system['_bcka'] < _pkt_time - 60: logger.debug(_target_system['_bcka']) continue @@ -1456,7 +1456,7 @@ class routerHBP(HBSYSTEM): continue #If target has missed 6 (on 1 min) of keepalives, don't send - if _target_system['ENHANCED_OBP'] ['_bcka'] in _target_system and _target_system['_bcka'] < _pkt_time - 60: + if _target_system['ENHANCED_OBP'] and '_bcka' in _target_system and _target_system['_bcka'] < _pkt_time - 60: continue # Is this a new call stream on the target?