From: Douglas Bagnall Date: Sat, 27 Oct 2018 21:49:24 +0000 (+1300) Subject: traffic_replay: Exception has no .message X-Git-Tag: tdb-1.3.17~1014 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9055602e639cdc39c71e13c35ca93c9a1b51eb70;p=thirdparty%2Fsamba.git traffic_replay: Exception has no .message Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- 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()