[issue17840] base64_codec uses assert for runtime validity checks

Alex Henderson report at bugs.python.org
Sun Jul 7 16:31:02 CEST 2013


Alex Henderson added the comment:

Having discussed this with Ezio, I think the better option might be to raise ValueError instead - if someone is expecting to be able to silently recover from errors they won't be able to, and should find out about this sooner rather than later.
I'll upload an updated patch shortly.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17840>
_______________________________________


More information about the Python-bugs-list mailing list