Add try-catch level for invalidmac exception
This commit is contained in:
@@ -63,6 +63,7 @@ def sym_time(val):
|
||||
def vendor(mac):
|
||||
try:
|
||||
from mac_vendor_lookup import InvalidMacError, MacLookup as mlu
|
||||
try:
|
||||
return mlu().lookup(mac.strip())
|
||||
except InvalidMacError:
|
||||
return f"not a MAC {str(mac).strip()} of type {type(mac)}"
|
||||
|
||||
Reference in New Issue
Block a user