diff options
Diffstat (limited to 'contrib/RHEL4')
-rw-r--r-- | contrib/RHEL4/ipa-client-setup | 4 | ||||
-rw-r--r-- | contrib/RHEL4/ipachangeconf.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/RHEL4/ipa-client-setup b/contrib/RHEL4/ipa-client-setup index 4d1fead98..1096889eb 100644 --- a/contrib/RHEL4/ipa-client-setup +++ b/contrib/RHEL4/ipa-client-setup @@ -112,7 +112,7 @@ class ipaserver: self.domain = lrealms[0].lower() return True - except LDAPError, err: + except LDAPError as err: #no good root_logger.error("Ldap Error: "+str(err)) return False @@ -289,7 +289,7 @@ def main(): {'name':'empty', 'type':'empty'}] try: ldapconf.newConf("/etc/ldap.conf", opts) - except Exception, e: + except Exception as e: print "Configuration failed: " + str(e) return 1 diff --git a/contrib/RHEL4/ipachangeconf.py b/contrib/RHEL4/ipachangeconf.py index ac7ecf891..de1a215b7 100644 --- a/contrib/RHEL4/ipachangeconf.py +++ b/contrib/RHEL4/ipachangeconf.py @@ -435,7 +435,7 @@ class IPAChangeConf: try: try: shutil.copy2(file, file+".ipabkp") - except IOError, err: + except IOError as err: if err.errno == 2: # The orign file did not exist pass |