Skip to content

Commit 9e1a09c

Browse files
committed
Don't remove traceback on rethrow
1 parent 4bcd946 commit 9e1a09c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Src/IronPython/Runtime/Operations/PythonOps.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,10 +2272,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
22722272
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
22732273
PythonTuple t = GetExceptionInfo(context);
22742274
Debug.Assert(t[1] == GetRawContextException());
2275-
Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
2276-
e.RemoveTraceBack();
2277-
ExceptionHelpers.UpdateForRethrow(e);
2278-
return e;
2275+
return MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
22792276
}
22802277

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

0 commit comments

Comments
 (0)