Commit c3c008c
committed
In Submodule.iter_items, don't attach second empty iterator
This fixes the minor bug where a separate empty iterator was bound
to the StopIteration exception raised as a result of returning from
the generator function (#1779).
This change does not cause what exceptions are raised from
GitPython code in any situations, nor how many items any iterators
yield.1 parent f5dc1c4 commit c3c008c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | | - | |
| 1404 | + | |
1405 | 1405 | | |
1406 | 1406 | | |
1407 | 1407 | | |
| |||
0 commit comments