correctly catch missing service manager

This commit is contained in:
Frédéric Péters 2009-11-03 10:39:37 +01:00
parent c26686f310
commit bfaec89d70
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class PcfAnnuaire(BaseContent):
return sec_gen
try:
return [x for x in self.getEntries() if x.service == service and x.manager == sec_gen.dn][0]
except KeyError:
except IndexError:
return None
def getServiceNonManagers(self, service):