updates to log exceptions during threadpool, avoid errors when hwaddr is None during EMANE scenarios

This commit is contained in:
Blake Harnden 2020-01-15 13:58:48 -08:00
parent 7e50dbdc65
commit d1c95a468a
2 changed files with 3 additions and 1 deletions

View file

@ -153,7 +153,8 @@ class CoreInterface:
:param str addr: hardware address to set to.
:return: nothing
"""
addr = utils.validate_mac(addr)
if addr is not None:
addr = utils.validate_mac(addr)
self.hwaddr = addr
def getparam(self, key: str) -> float: