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. :param str addr: hardware address to set to.
:return: nothing :return: nothing
""" """
addr = utils.validate_mac(addr) if addr is not None:
addr = utils.validate_mac(addr)
self.hwaddr = addr self.hwaddr = addr
def getparam(self, key: str) -> float: def getparam(self, key: str) -> float:

View file

@ -440,6 +440,7 @@ def threadpool(
result = future.result() result = future.result()
results.append(result) results.append(result)
except Exception as e: except Exception as e:
logging.exception("thread pool exception")
exceptions.append(e) exceptions.append(e)
return results, exceptions return results, exceptions