1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00

traffic_replay: Exception has no .message

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
This commit is contained in:
Douglas Bagnall 2018-10-28 10:49:24 +13:00 committed by Douglas Bagnall
parent 9c2447e2d8
commit 9055602e63

View File

@ -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()