diff --git a/src/capport/utils/ipneigh.py b/src/capport/utils/ipneigh.py index 6836f80..7c591c0 100644 --- a/src/capport/utils/ipneigh.py +++ b/src/capport/utils/ipneigh.py @@ -54,6 +54,8 @@ class NeighborController: if neigh is None: return None mac = neigh.get_attr(neigh.name2nla('lladdr')) + if mac is None: + return None return cptypes.MacAddress.parse(mac) async def get_route(