aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/traffic_client.py
diff options
context:
space:
mode:
authorfmenguy <francoisregis.menguy@orange.com>2020-08-24 16:00:01 +0200
committerfmenguy <francoisregis.menguy@orange.com>2020-08-24 16:04:06 +0200
commitdbb932797aff64d458231519d3cf245913913d67 (patch)
tree6e3d0571e21d98cb116d87bbbdd65eaa9e9d311c /nfvbench/traffic_client.py
parent259a75b97d735cff6cfc91c12bf84801c9dc992b (diff)
NFVBENCH-175 pylint w0707 correction
Change-Id: I16927f051f80c540ffc1989f5311e47e68b14a73 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/traffic_client.py')
-rwxr-xr-xnfvbench/traffic_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nfvbench/traffic_client.py b/nfvbench/traffic_client.py
index 89653a8..460e7c2 100755
--- a/nfvbench/traffic_client.py
+++ b/nfvbench/traffic_client.py
@@ -288,7 +288,7 @@ class Device(object):
value = int((ip_size / step)) + 1
return value
except ZeroDivisionError:
- raise ZeroDivisionError("step can't be zero !")
+ raise ZeroDivisionError("step can't be zero !") from ZeroDivisionError
def set_mac(self, mac):
"""Set the local MAC for this port device."""