summaryrefslogtreecommitdiff
path: root/script/traffic_replay
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-10-28 10:49:24 +1300
committerDouglas Bagnall <dbagnall@samba.org>2018-11-01 05:08:13 +0100
commit9055602e639cdc39c71e13c35ca93c9a1b51eb70 (patch)
tree3a3a4405f37589244e83a95709f875e29d2beeae /script/traffic_replay
parent9c2447e2d8fbc183bc399f7fe1c79bee5e0d96cd (diff)
downloadsamba-9055602e639cdc39c71e13c35ca93c9a1b51eb70.tar.gz
traffic_replay: Exception has no .message
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'script/traffic_replay')
-rwxr-xr-xscript/traffic_replay2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/traffic_replay b/script/traffic_replay
index 617a746be1b..9642ea87d05 100755
--- a/script/traffic_replay
+++ b/script/traffic_replay
@@ -254,7 +254,7 @@ def main():
duration = opts.duration
except ValueError as e:
- if not e.message.startswith('need more than'):
+ if not str(e).startswith('need more than'):
raise
model = traffic.TrafficModel()