summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-16 11:39:04 +0200
committerimarom <imarom@cisco.com>2016-03-16 11:39:04 +0200
commit7d7cb50d7e75ca1beccc00daf74227c4320685f6 (patch)
tree3fe256915c9677774cfbc54aecadf5716e4a4496 /scripts/automation/trex_control_plane
parentf803e5b2b997e02f30bf747ce799f42b7aa61c13 (diff)
traceback should not inlcude our code
Diffstat (limited to 'scripts/automation/trex_control_plane')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
index d4b817cc..9edc279f 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
@@ -856,7 +856,7 @@ class STLProfile(object):
except Exception as e:
a, b, tb = sys.exc_info()
- x =''.join(traceback.format_list(traceback.extract_tb(tb)[0:])) + a.__name__ + ": " + str(b) + "\n"
+ x =''.join(traceback.format_list(traceback.extract_tb(tb)[1:])) + a.__name__ + ": " + str(b) + "\n"
summary = "\nPython Traceback follows:\n\n" + x
raise STLError(summary)