petl-developers / petl

Python Extract Transform and Load Tables of Data
MIT License
1.22k stars 190 forks source link

Fix iterrowslice to conform with Python 3.7 PEP 479 which transforms … #613

Closed arturponinski closed 2 years ago

arturponinski commented 2 years ago

…StopIteration in generators to RuntimeError exceptions

This PR has the objective of aligning iterrowslice with Python 3.7 PEP 479 behavior, which transforms StopIteration in generators to RuntimeError exceptions.

Changes

  1. Added exception handler for the first yield

Checklist

Use this checklist for assuring the quality of pull requests that include new code and or make changes to existing code.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1814984436


Totals Coverage Status
Change from base Build 1814968930: 0.008%
Covered Lines: 12495
Relevant Lines: 13584

💛 - Coveralls