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 May 1, 2021
1 parent 4bcd946 commit 9e1a09c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Src/IronPython/Runtime/Operations/PythonOps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2272,10 +2272,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
PythonTuple t = GetExceptionInfo(context);
Debug.Assert(t[1] == GetRawContextException());
Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
e.RemoveTraceBack();
ExceptionHelpers.UpdateForRethrow(e);
return e;
return MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
}

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

0 comments on commit 9e1a09c

Please sign in to comment.