updates to log exceptions during threadpool, avoid errors when hwaddr is None during EMANE scenarios
This commit is contained in:
parent
7e50dbdc65
commit
d1c95a468a
2 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue