Lysandros Nikolaou <lisandrosnik at gmail.com> added the comment: That's because we're not checking for errors after a loop is done. Pushing a fix. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue40555> _______________________________________