correctly catch missing service manager
This commit is contained in:
parent
c26686f310
commit
bfaec89d70
|
@ -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):
|
||||
|
|
Reference in New Issue