bskinn / pent

pent Extracts Numerical Text -- Mini-language driven parser for structured numerical data in text
MIT License
20 stars 3 forks source link

Fix inaccurate error message on ThruList #59

Closed bskinn closed 6 years ago

bskinn commented 6 years ago

The IndexError that is currently raised here is only a correct message when len(self) == 1.

This needs to be fixed so that it's appropriately matched to whichever conditional is actually the one that caused the conditional to fail.