Skip to content

Commit 0d9b074

Browse files
committed
Don't remove traceback on rethrow
1 parent 1714606 commit 0d9b074

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,10 +2468,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
24682468
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
24692469
PythonTuple t = GetExceptionInfo(context);
24702470
Debug.Assert(t[1] == GetRawContextException());
2471-
Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
2472-
e.RemoveTraceBack();
2473-
ExceptionHelpers.UpdateForRethrow(e);
2474-
return e;
2471+
return MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
24752472
}
24762473

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

0 commit comments

Comments
 (0)