pylint: Remove a few exception lint warnings
This commit is contained in:
@ -74,9 +74,9 @@ class VPPApi:
|
|||||||
self.vpp.connect(self.clientname)
|
self.vpp.connect(self.clientname)
|
||||||
self.connected = True
|
self.connected = True
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except ConnectionError as err:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
f"Could not connect to VPP (attempt {i+1}/{retries}): {e}"
|
f"Could not connect to VPP (attempt {i+1}/{retries}): {err}"
|
||||||
)
|
)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
self.connected = False
|
self.connected = False
|
||||||
@ -224,9 +224,9 @@ class VPPApi:
|
|||||||
)
|
)
|
||||||
self.cache["lcps"][lcp.phy_sw_if_index] = lcp
|
self.cache["lcps"][lcp.phy_sw_if_index] = lcp
|
||||||
self.lcp_enabled = True
|
self.lcp_enabled = True
|
||||||
except:
|
except AttributeError as err:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
"linux-cp not found, will not reconcile Linux Control Plane"
|
f"linux-cp not found, will not reconcile Linux Control Plane: {err}"
|
||||||
)
|
)
|
||||||
|
|
||||||
self.logger.debug("Retrieving interfaces")
|
self.logger.debug("Retrieving interfaces")
|
||||||
|
Reference in New Issue
Block a user