diff --git a/python/common/org/Python.java b/python/common/org/Python.java index 713ccfac85..d8427b7d58 100644 --- a/python/common/org/Python.java +++ b/python/common/org/Python.java @@ -1752,7 +1752,10 @@ public static org.python.Object zip(org.python.Object item, org.python.types.Tup try { org.python.Iterable it = iters.get(i); tuple.add(it.__next__()); - } catch (IndexOutOfBoundsException | org.python.exceptions.StopIteration e) { + } catch (IndexOutOfBoundsException e) { + flag = true; + break; + } catch (org.python.exceptions.StopIteration e) { flag = true; break; }