I pushed this under the 1-liner rule. Save the exception to a variable so it can be pushed along.

diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py
index 281981d..80a9a51 100644
--- a/ipaserver/install/service.py
+++ b/ipaserver/install/service.py
@@ -297,7 +297,7 @@ class Service:

         try:
             conn.add_s(entry)
-        except ldap.ALREADY_EXISTS:
+        except ldap.ALREADY_EXISTS, e:
logging.critical("failed to add %s Service startup entry" % name)
             raise e

_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to