Nick Coghlan added the comment: ValueError works for me. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17840> _______________________________________