diff options
author | fmenguy <francoisregis.menguy@orange.com> | 2020-08-24 16:00:01 +0200 |
---|---|---|
committer | fmenguy <francoisregis.menguy@orange.com> | 2020-08-24 16:04:06 +0200 |
commit | dbb932797aff64d458231519d3cf245913913d67 (patch) | |
tree | 6e3d0571e21d98cb116d87bbbdd65eaa9e9d311c /nfvbench/chaining.py | |
parent | 259a75b97d735cff6cfc91c12bf84801c9dc992b (diff) |
NFVBENCH-175 pylint w0707 correction
Change-Id: I16927f051f80c540ffc1989f5311e47e68b14a73
Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/chaining.py')
-rw-r--r-- | nfvbench/chaining.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nfvbench/chaining.py b/nfvbench/chaining.py index a52c7e9..ed2f309 100644 --- a/nfvbench/chaining.py +++ b/nfvbench/chaining.py @@ -279,7 +279,7 @@ class ChainNetwork(object): return item_field[index] except IndexError: raise ChainException("List %s is too short for chain index %d" % - (str(item_field), index)) + (str(item_field), index)) from IndexError # single value is configured if auto_index: return item_field + index @@ -1195,7 +1195,8 @@ class ChainManager(object): self.vlans = [self._check_list('vlans[0]', self.config.vlans[0], re_vlan), self._check_list('vlans[1]', self.config.vlans[1], re_vlan)] except IndexError: - raise ChainException('vlans parameter is mandatory. Set valid value in config file') + raise ChainException( + 'vlans parameter is mandatory. Set valid value in config file') from IndexError def _get_dest_macs_from_config(self): re_mac = "[0-9a-fA-F]{2}([-:])[0-9a-fA-F]{2}(\\1[0-9a-fA-F]{2}){4}$" |