Skip to content

Commit

Permalink
Don't remove traceback on rethrow
Browse files Browse the repository at this point in the history
  • Loading branch information
slozier committed Feb 17, 2020
1 parent e1db60d commit 754f942
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Src/IronPython/Runtime/Operations/PythonOps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2159,12 +2159,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
/// </summary>
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
PythonTuple t = GetExceptionInfo(context);

Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, true);

e.RemoveTraceBack();
ExceptionHelpers.UpdateForRethrow(e);
return e;
return MakeExceptionWorker(context, t[0], t[1], t[2], null, true);
}

/// <summary>
Expand Down

0 comments on commit 754f942

Please sign in to comment.