Skip to content

Commit a7d0252

Browse files
committed
Don't remove traceback on rethrow
1 parent d0fbabf commit a7d0252

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/core/IronPython/Runtime/Operations/PythonOps.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,10 +2504,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
25042504
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
25052505
PythonTuple t = GetExceptionInfo(context);
25062506
Debug.Assert(t[1] == GetRawContextException());
2507-
Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
2508-
e.RemoveTraceBack();
2509-
ExceptionHelpers.UpdateForRethrow(e);
2510-
return e;
2507+
return MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
25112508
}
25122509

25132510
public static Exception MakeException(CodeContext/*!*/ context, object exception) {

0 commit comments

Comments
 (0)