[Gajim-devel] UnicodeError: label empty or too long

Yann Leboulanger asterix at lagaule.org
Thu Jul 2 20:12:31 CEST 2015

On 07/01/2015 05:26 PM, Ruslan Makhmatkhanov wrote:
> Hello,
> I got "UnicodeError: label empty or too long" on some messages in
> history. Actual crash happens in idn_to_ascii:
>   File "/usr/local/share/gajim/src/common/helpers.py", line 125, in
> idn_to_ascii
>      converted_labels.append(idna.ToASCII(label))
>    File "/usr/local/lib/python2.7/encodings/idna.py", line 73, in ToASCII
>      raise UnicodeError("label empty or too long")
> Patch attached fixing it (just be sure that label is not empty before
> calling idna.ToASCII()).


Thanks for the report and the patch. This problem has already been
reported and fixed:

will be in next release.


More information about the Gajim-devel mailing list