X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=nfvbench%2Ftraffic_client.py;h=460e7c2bdcbf47c6f01e06c7b94d9d408eadfe6f;hb=dbb932797aff64d458231519d3cf245913913d67;hp=89653a8692d044cf7bc77eaac7d995722927ce59;hpb=259a75b97d735cff6cfc91c12bf84801c9dc992b;p=nfvbench.git 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."""