Jan Vorwerk added the comment: Indeed, the error message is quite... surprising and misleading. To reproduce, please run the attached (admittedly wrong) program that I could simplify a lot.
It seems to occur when a exception is raised at the wrong time... I hope this helps nail down (at least) one use case. 'pip install aiohttp' is required Best regards ---------- nosy: +JanVok Added file: http://bugs.python.org/file46659/error.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26789> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com