From 9055602e639cdc39c71e13c35ca93c9a1b51eb70 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sun, 28 Oct 2018 10:49:24 +1300 Subject: [PATCH] traffic_replay: Exception has no .message Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- script/traffic_replay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()