summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-10 11:53:58 +0200
committerimarom <imarom@cisco.com>2016-03-10 17:16:38 +0200
commit38847508e56f7733f8ac8913389526f6331059c6 (patch)
treee0701096a488a3a6d1c690fb735dd34e9f423830 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
parent3c2f0346b3743d27ef0a02e44726f11fdb73417d (diff)
minor fix
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
index cf394445..1b57dd20 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py
@@ -919,9 +919,7 @@ class CRxStats(CTRexStats):
for pg_id, value in self.latest_stats.iteritems():
# skip non ints
- try:
- int(pg_id)
- except ValueError:
+ if not self.is_intable(pg_id):
continue
stats[int(pg_id)] = {}