Nick Coghlan <ncoghlan at gmail.com> added the comment: Agreed, raising the exception properly would be the way to go. ---------- nosy: +ncoghlan _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue35476> _______________________________________