[Freeipa-devel] [PATCH] fix exception catch

Rob Crittenden rcritten at redhat.com
Sat Dec 11 05:50:23 UTC 2010


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




More information about the Freeipa-devel mailing list