From a25a8576cd69e1a47978c7ccd6a408248fc79a14 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Fri, 6 Dec 2019 21:40:38 -0500 Subject: tests: vpp_memif fix formatting error in exception Type: test Change-Id: I2d32797efd1c3478a862b7950ef9ab63428da890 Signed-off-by: Paul Vinciguerra --- src/plugins/memif/test/vpp_memif.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/plugins/memif/test/vpp_memif.py b/src/plugins/memif/test/vpp_memif.py index 3ccbb68970b..9afed6fb63c 100644 --- a/src/plugins/memif/test/vpp_memif.py +++ b/src/plugins/memif/test/vpp_memif.py @@ -90,14 +90,11 @@ class VppMemif(VppObject): ring_size=self.ring_size, buffer_size=self.buffer_size, hw_addr=self.hw_addr) - try: - self.sw_if_index = 0 - except AttributeError: - raise AttributeError('self: %s' % self.__dict__) try: self.sw_if_index = rv.sw_if_index except AttributeError: - raise AttributeError("%s %s", self, rv) + # rv doesn't have .sw_if_index attribute + raise AttributeError("%s %s" % (self, rv)) return self.sw_if_index -- cgit 1.2.3-korg