From e99febc00e77f8fca2e4461df4c5db72f1630ef9 Mon Sep 17 00:00:00 2001 From: imarom Date: Tue, 29 Mar 2016 15:21:35 +0300 Subject: Python 3 crash for portattr --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py index 25e35423..6fdc3454 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py @@ -1825,7 +1825,7 @@ class STLClient(object): ports = self._validate_port_list(ports) # check arguments - validate_type('promiscuous', promiscuous, (bool, NoneType)) + validate_type('promiscuous', promiscuous, (bool, type(None))) # build attributes attr_dict = {} -- cgit 1.2.3-korg