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,6 +153,7 @@ class CoreInterface:
:param str addr: hardware address to set to.
:return: nothing
"""
if addr is not None:
addr = utils.validate_mac(addr)
self.hwaddr = addr

View file

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