veekun_pokedex/pokedex/db
Kip Yin 11f972f817 Catch StopIteration explicitly in group_by_object generator (#264)
Python 3.7 changed the behaviour of generators so that a StopIteration exception which bubbles up inside a generator is transformed into a RuntimeException. This means that when calling next() inside a generator, we have to explicitly catch the StopIteration and exit the function instead of relying on it to implicitly stop the generator. Otherwise the program will crash. Sigh.

For more information, see PEP 479.

https://www.python.org/dev/peps/pep-0479/
https://stackoverflow.com/questions/51700960/runtimeerror-generator-raised-stopiteration-every-time-i-try-to-run-app/51701040#51701040
2019-07-15 13:23:37 -07:00
..
__init__.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
dependencies.py load: Add --recursive option. 2011-04-03 03:17:08 -07:00
load.py Resolve some Python 3 encoding issues on Windows (#244) 2018-08-22 23:01:58 -07:00
markdown.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
multilang.py fix test suite under SQLAlchemy 1.2.x 2018-03-30 12:01:21 -07:00
oracle.py Update the docstring on rewrite_long_table_names. 2014-02-21 17:59:52 -05:00
tables.py Merge pull request #238 from jrubinator/record-gift-pokemon 2019-07-12 19:40:29 -07:00
translations.py Catch StopIteration explicitly in group_by_object generator (#264) 2019-07-15 13:23:37 -07:00
util.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00