From e8dc90311174d2a5d2029a552f99a37211d149d3 Mon Sep 17 00:00:00 2001 From: tke Date: Tue, 8 Feb 2022 17:43:15 +0100 Subject: [PATCH] Add try-catch level for invalidmac exception --- visidatarc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/visidatarc b/visidatarc index 8d62b80..861f787 100644 --- a/visidatarc +++ b/visidatarc @@ -63,9 +63,10 @@ def sym_time(val): def vendor(mac): try: from mac_vendor_lookup import InvalidMacError, MacLookup as mlu - return mlu().lookup(mac.strip()) - except InvalidMacError: - return f"not a MAC {str(mac).strip()} of type {type(mac)}" + try: + return mlu().lookup(mac.strip()) + except InvalidMacError: + return f"not a MAC {str(mac).strip()} of type {type(mac)}" except ModuleNotFoundError: return "module not available"