Comment 0 for bug 260530

Revision history for this message
In , mingwu (myhusky) wrote :

following errors occurs when a contact has no display name specified

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/pymsn/service/SOAPService.py", line 198, in _response_handler
    handler(callback, errback, response, user_data)
  File "/usr/lib/python2.4/site-packages/pymsn/service/AddressBook/sharing.py", line 127, in _HandleFindMembershipResponse
    callback[0](memberships.values(), *callback[1:])
  File "/usr/lib/python2.4/site-packages/pymsn/service/AddressBook/scenario/sync/initial_sync.py", line 56, in __membership_findall_callback
    self.__membership_response, *callback[1:])
  File "/usr/lib/python2.4/site-packages/pymsn/service/AddressBook/address_book.py", line 241, in callback
    self.__update_memberships(memberships)
  File "/usr/lib/python2.4/site-packages/pymsn/service/AddressBook/address_book.py", line 571, in __update_memberships
    member.DisplayName.encode("utf-8"),
AttributeError: 'NoneType' object has no attribute 'encode'