Ensure owner validity before using
This commit is contained in:
parent
d42b9da06d
commit
7268d8803d
@ -126,7 +126,7 @@ class Activity(object):
|
|||||||
for serv_list in self._services.values():
|
for serv_list in self._services.values():
|
||||||
for serv in serv_list:
|
for serv in serv_list:
|
||||||
owner = serv.get_owner()
|
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)
|
buddies.append(owner)
|
||||||
return buddies
|
return buddies
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user