[Bug 27556] telepathy-butterfly crashed with ValueError in __parse()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 14 15:32:15 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=27556

--- Comment #2 from William Grant <wgrant at ubuntu.com> 2010-04-14 06:32:15 PDT ---
This happens every time I receive a message from a particular contact at the
moment. Said contact is using eBuddy right now.

This is an example message:

<<< MSG <redacted email> <redacted name> 160

 X-MMS-IM-Format: 'FN=Arial; EF=; CO=000000; CS=0; PF=00; RL=0;'\r\n
 Content-Type: 'text/plain; charset=UTF-8'\r\n
 MIME-Version: '1.0'\r\n
 \r\n
 <redacted plaintext message body>

I suspect that the trailing semicolon on X-MMS-IM-Format is to blame -- adding
an emptiness check like this fixes it:

    def __parse(self, format):
        for property in format.split(';'):
            if not property:
                continue
            key, value = [p.strip(' \t|').upper() \
                    for p in property.split('=', 1)]

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list