This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients ezio.melotti, r.david.murray, spaceone, vstinner
Date 2015-12-16.14:01:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450274499.32.0.47474197106.issue25880@psf.upfronthosting.co.za>
In-reply-to
Content
The error message is accurate.  That string has empty label segments in it, which RFC 5890 defines as an error on encoding.  There is no such error defined for decoding, so that doesn't raise an error.

I don't see anything wrong with the error message, it includes the same one as raised in python2.  Perhaps you are confused by the error chaining introduced in Python3?  The second part of the traceback is coming from the encoding machinery, while the first part lets you know where in the encoder the error was raised.  In this case having both doesn't provide much additional information, but if one was debugging a codec or the error were coming from inside an application, it would.
History
Date User Action Args
2015-12-16 14:01:39r.david.murraysetrecipients: + r.david.murray, vstinner, ezio.melotti, spaceone
2015-12-16 14:01:39r.david.murraysetmessageid: <1450274499.32.0.47474197106.issue25880@psf.upfronthosting.co.za>
2015-12-16 14:01:39r.david.murraylinkissue25880 messages
2015-12-16 14:01:38r.david.murraycreate