Ensure owner validity before using

This commit is contained in:
Dan Williams 2006-09-24 21:29:11 -04:00
parent d42b9da06d
commit 7268d8803d

View File

@ -126,7 +126,7 @@ class Activity(object):
for serv_list in self._services.values():
for serv in serv_list:
owner = serv.get_owner()
if not owner in buddies and owner.is_valid():
if owner and not owner in buddies and owner.is_valid():
buddies.append(owner)
return buddies