diff options
author | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-11-26 14:38:24 -0500 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk> | 2010-12-03 13:45:04 -0500 |
commit | 358ec1a887e9a4fcb2f108cf5f5a02457ff268a4 (patch) | |
tree | 6e3c48578a0f6496a63da769b8b2ccc209d5bba5 | |
parent | f820fafe64f15bb76fa1b0c73cc4cfb14a1f8ee8 (diff) |
bugfix: the UBX can contain string "0" as UserTileLocation
That happens if the contact doesn't have a display picture. We shouldn't try to parse the MSNObject in that case.
-rw-r--r-- | papyon/msnp/notification.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/papyon/msnp/notification.py b/papyon/msnp/notification.py index ee47672..2e2e04c 100644 --- a/papyon/msnp/notification.py +++ b/papyon/msnp/notification.py @@ -514,7 +514,7 @@ class NotificationProtocol(BaseProtocol, Timer): mg = self.__find_node(tree, "./MachineGuid", "{}").lower()[1:-1] msn_object = None - if utl != "": + if utl != "" and utl != "0": msn_object = papyon.p2p.MSNObject.parse(self._client, utl) cm = None |