Skip to content

Commit 869c880

Browse files
committed
don't remove outer exception from Iterator.__next__
1 parent 2241993 commit 869c880

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/runtime/iterator.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ public static IntPtr tp_iternext(IntPtr ob)
3333
}
3434
catch (Exception e)
3535
{
36-
if (e.InnerException != null)
37-
{
38-
e = e.InnerException;
39-
}
4036
Exceptions.SetError(e);
4137
return IntPtr.Zero;
4238
}

0 commit comments

Comments
 (0)