Skip to content

Commit 06eea1b

Browse files
committed
Don't remove traceback on rethrow
1 parent 993dba7 commit 06eea1b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Src/IronPython/Runtime/Operations/PythonOps.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,10 +2351,7 @@ public static PythonTuple GetExceptionInfo(CodeContext/*!*/ context) {
23512351
public static Exception MakeRethrownException(CodeContext/*!*/ context) {
23522352
PythonTuple t = GetExceptionInfo(context);
23532353
Debug.Assert(t[1] == GetRawContextException());
2354-
Exception e = MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
2355-
e.RemoveTraceBack();
2356-
ExceptionHelpers.UpdateForRethrow(e);
2357-
return e;
2354+
return MakeExceptionWorker(context, t[0], t[1], t[2], null, suppressContext: false, forRethrow: true);
23582355
}
23592356

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

0 commit comments

Comments
 (0)