My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 77: UnicodeDecodeError in buddies.py
  Back to list
Status:  Fixed
Owner:  jadest...@gmail.com
Closed:  Jan 2008


 
Reported by jadest...@gmail.com, Dec 15, 2007
Posted by guest at 2007-07-13 10:23:51

[2007-07-12 22:40:29] Traceback (most recent call last):
          File "/usr/share/jabber-pyicq/src/tlib/oscar.py", line 647,
in dataReceived
            state=func(flap)
          File "/usr/share/jabber-pyicq/src/tlib/oscar.py", line 756,
in oscar_Data
            d.callback(snac)
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
229, in callback
            self._startRunCallbacks(result)
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
294, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
307, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 400,
in gotBuddyList
            self.readGroup(l[0])
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 379,
in readGroup
            self.readGroup(member.users, parent=member)
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 389,
in readGroup
            self.oscarcon.legacyList.updateSSIContact(member.name, nick=unick)
          File "/usr/share/jabber-pyicq/src/legacy/buddies.py", line
232, in updateSSIContact
            if nick and self.xdbcontacts[contact.lower()].get('nickname','') !=
nick:
        exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in
position 0: unexpected code byte

Suggestion to fix:
replace the line with
if nick and unicode(self.xdbcontacts[contact.lower()].get('nickname',''),
errors='replace') != nick:
Jan 19, 2008
Project Member #1 d...@jabber.fsinf.de
Probably fixed in revision 234.
Status: Fixed

Powered by Google Project Hosting