mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +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:
parent
9c2447e2d8
commit
9055602e63
@ -254,7 +254,7 @@ def main():
|
|||||||
duration = opts.duration
|
duration = opts.duration
|
||||||
|
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
if not e.message.startswith('need more than'):
|
if not str(e).startswith('need more than'):
|
||||||
raise
|
raise
|
||||||
|
|
||||||
model = traffic.TrafficModel()
|
model = traffic.TrafficModel()
|
||||||
|
Loading…
Reference in New Issue
Block a user