Fix typo and traceback suppression in replication.py

This commit is contained in:
Petr Viktorin 2013-01-23 09:53:10 -05:00 committed by Martin Kosek
parent e815c1893d
commit d17f9020a8

View File

@ -447,9 +447,10 @@ class ReplicationManager(object):
try: try:
entry = self.conn.getEntry(DN(('cn', 'mapping tree'), ('cn', 'config')), ldap.SCOPE_ONELEVEL, entry = self.conn.getEntry(DN(('cn', 'mapping tree'), ('cn', 'config')), ldap.SCOPE_ONELEVEL,
"(cn=\"%s\")" % (self.suffix)) "(cn=\"%s\")" % (self.suffix))
except errors.NotFound, e: except errors.NotFound:
root_logger.debug("failed to find mappting tree entry for %s" % self.suffix) root_logger.debug(
raise e "failed to find mapping tree entry for %s", self.suffix)
raise
return entry return entry