From 7d7cb50d7e75ca1beccc00daf74227c4320685f6 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 16 Mar 2016 11:39:04 +0200 Subject: traceback should not inlcude our code --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py') 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) -- cgit 1.2.3-korg