handle status-message from number not in buddylist
This commit is contained in:
parent
6107e38a69
commit
d1a2cc63d9
3
buddy.py
3
buddy.py
|
@ -113,7 +113,8 @@ class BuddyList(dict):
|
|||
def onStatus(self, contacts):
|
||||
self.logger.debug("%s received statuses of: %s" % (self.user, contacts))
|
||||
for number, (status, time) in contacts.iteritems():
|
||||
buddy = self[number]
|
||||
try: buddy = self[number]
|
||||
except KeyError: self.logger.warn("received status of buddy not in list: %s" % number)
|
||||
if status is None:
|
||||
buddy.statusMsg = ""
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue