Skip to content

Commit c40cc22

Browse files
committed
Don't remove traceback on rethrow
1 parent 3b8a103 commit c40cc22

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Src/IronPython/Runtime/Operations/PythonOps.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,12 +2191,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
21912191
/// </summary>
21922192
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
21932193
PythonTuple t = GetExceptionInfo(context);
2194-
2195-
Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, true);
2196-
2197-
e.RemoveTraceBack();
2198-
ExceptionHelpers.UpdateForRethrow(e);
2199-
return e;
2194+
return MakeExceptionWorker(context, t[0], t[1], t[2], null, true);
22002195
}
22012196

22022197
/// <summary>

0 commit comments

Comments
 (0)