summaryrefslogtreecommitdiffstats
path: root/ipa-server/xmlrpc-server
diff options
context:
space:
mode:
authorrcritten@redhat.com <rcritten@redhat.com>2007-11-30 15:53:02 -0500
committerrcritten@redhat.com <rcritten@redhat.com>2007-11-30 15:53:02 -0500
commitc32a960cae3eca434369502fb12b23b62ae6b2bf (patch)
tree0fee19d4c25781aa10aa2fe8199e5dc9c04192e6 /ipa-server/xmlrpc-server
parentb04bed4e82e4497b379c433d88cd188348b39da7 (diff)
downloadfreeipa-c32a960cae3eca434369502fb12b23b62ae6b2bf.tar.gz
freeipa-c32a960cae3eca434369502fb12b23b62ae6b2bf.tar.xz
freeipa-c32a960cae3eca434369502fb12b23b62ae6b2bf.zip
Compatibility changes to work on RHEL 5 with python 2.4
Diffstat (limited to 'ipa-server/xmlrpc-server')
-rw-r--r--ipa-server/xmlrpc-server/funcs.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py
index 2e218ac9..032f6b42 100644
--- a/ipa-server/xmlrpc-server/funcs.py
+++ b/ipa-server/xmlrpc-server/funcs.py
@@ -1270,11 +1270,12 @@ class IPAServer:
conn = self.getConnection(opts)
try:
- results = conn.getListAsync(self.basedn, self.scope,
- filter, attr_list, 0, None, None, timelimit,
- searchlimit)
- except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
- results = [0]
+ try:
+ results = conn.getListAsync(self.basedn, self.scope,
+ filter, attr_list, 0, None, None, timelimit,
+ searchlimit)
+ except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
+ results = [0]
finally:
self.releaseConnection(conn)