Fred L. Drake, Jr. added the comment: +1 for ValueError instead of OSError. ---------- nosy: +fdrake _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23116> _______________________________________