[issue32958] socket module calls with long host names can fail with idna codec error

Alex Vandiver report at bugs.python.org
Mon Apr 26 18:04:10 EDT 2021


Alex Vandiver <github at chmrr.net> added the comment:

It seems reasonable to fail on hostnames that are too long -- but it feels like the weirdness is that it is categorized as a UnicodeError, and not as, say, a ValueError.

Would a re-categorization as ValueError seem like a reasonable adjustment here?

----------
nosy: +alexmv

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32958>
_______________________________________


More information about the Python-bugs-list mailing list