aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench
diff options
context:
space:
mode:
Diffstat (limited to 'nfvbench')
-rw-r--r--nfvbench/chain_managers.py4
-rw-r--r--nfvbench/traffic_gen/trex.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/nfvbench/chain_managers.py b/nfvbench/chain_managers.py
index ab340bf..211f9bb 100644
--- a/nfvbench/chain_managers.py
+++ b/nfvbench/chain_managers.py
@@ -90,11 +90,11 @@ class PVPStatsManager(object):
try:
self.worker.set_vlans(self.vlans)
self._config_interfaces()
- except Exception as exc:
+ except Exception:
# since the wrorker is up and running, we need to close it
# in case of exception
self.close()
- raise exc
+ raise
def _get_data(self):
return self.worker.get_data() if self.worker else {}
diff --git a/nfvbench/traffic_gen/trex.py b/nfvbench/traffic_gen/trex.py
index c468802..22ca4d9 100644
--- a/nfvbench/traffic_gen/trex.py
+++ b/nfvbench/traffic_gen/trex.py
@@ -251,7 +251,7 @@ class TRex(AbstractTrafficGenerator):
break
except Exception as ex:
if it == (self.config.generic_retry_count - 1):
- raise ex
+ raise
LOG.info("Retrying connection to TRex (%s)...", ex.message)
def connect(self):