Skip to content

Commit 2925577

Browse files
committed
Don't remove traceback on rethrow
1 parent 71bdaca commit 2925577

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
@@ -2176,12 +2176,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
21762176
/// </summary>
21772177
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
21782178
PythonTuple t = GetExceptionInfo(context);
2179-
2180-
Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, true);
2181-
2182-
e.RemoveTraceBack();
2183-
ExceptionHelpers.UpdateForRethrow(e);
2184-
return e;
2179+
return MakeExceptionWorker(context, t[0], t[1], t[2], null, true);
21852180
}
21862181

21872182
/// <summary>

0 commit comments

Comments
 (0)