Return None if the service is unknown
This commit is contained in:
parent
d9ad506f88
commit
c481c3f270
@ -73,7 +73,10 @@ class LocalGroup(Group):
|
||||
self._owner.register()
|
||||
|
||||
def get_service(self, name, stype):
|
||||
return self._services[(name, stype)]
|
||||
if self._services.has_key((name, stype)):
|
||||
return self._services[(name, stype)]
|
||||
else
|
||||
return None
|
||||
|
||||
def get_buddy(self, name):
|
||||
return self._buddies[name]
|
||||
|
Loading…
Reference in New Issue
Block a user