The functions valid_ipv6 and valid_ipv4 return only True or False and they hide exceptions. But nothing is getting the return values of these functions so effectively those lines of code don't do anything.
It appears the goal was for those functions to raise Exceptions that could then be caught.
Around this section here https://github.com/lgirdk/boardfarm-docsis/blob/master/tests/docsis_lib/docsis.py#L256-L279
The functions
valid_ipv6
andvalid_ipv4
return only True or False and they hide exceptions. But nothing is getting the return values of these functions so effectively those lines of code don't do anything.It appears the goal was for those functions to raise Exceptions that could then be caught.