traceback should not inlcude our code
authorimarom <[email protected]>
Wed, 16 Mar 2016 09:39:04 +0000 (11:39 +0200)
committerimarom <[email protected]>
Wed, 16 Mar 2016 09:39:04 +0000 (11:39 +0200)
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py

index d4b817c..9edc279 100644 (file)
@@ -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)