Skip to content

Commit 754f942

Browse files
committed
Don't remove traceback on rethrow
1 parent e1db60d commit 754f942

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Diff for: Src/IronPython/Runtime/Operations/PythonOps.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -2159,12 +2159,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
21592159
/// </summary>
21602160
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
21612161
PythonTuple t = GetExceptionInfo(context);
2162-
2163-
Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, true);
2164-
2165-
e.RemoveTraceBack();
2166-
ExceptionHelpers.UpdateForRethrow(e);
2167-
return e;
2162+
return MakeExceptionWorker(context, t[0], t[1], t[2], null, true);
21682163
}
21692164

21702165
/// <summary>

0 commit comments

Comments
 (0)