test_ipv6_connection.py : added try except for checking if interface is up. test_ipv4_conneciton.py : moved print to debug

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-05-21 15:33:24 -06:00
parent acc3ba157d
commit ddfb03da5b
2 changed files with 6 additions and 2 deletions

View File

@@ -95,7 +95,10 @@ class IPv6Test(LFCliBase):
debug_=self.debug)
if self.debug:
print(sta_status)
if sta_status is None or sta_status['interface'] is None or sta_status['interface']['ap'] is None:
try:
if (sta_status is None) or (sta_status['interface'] is None) or (sta_status['interface']['ap'] is None):
continue
except:
continue
if len(sta_status['interface']['ap']) == 17 and sta_status['interface']['ap'][-3] == ':':
if self.debug: