mds/dev-python/python-ldap/files/python-ldap-2.3.10-ldap-reconnect-1.patch
geos_one 6a61197edc add patched python ldap
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@1940 6952d904-891a-0410-993b-d76249ca496b
2010-02-05 18:30:23 +00:00

20 lines
732 B
Diff

Submitted By: Mario Fetka (geos_one) (mario dot fetka at gmail dot com)
Date: 2010-02-05
Initial Package Version: 2.3.10
Origin: https://ml.mandriva.net/wws/arc/mds-devel/2010-02/msg00004.html
Upstream Status: unknown
Description: pass on ldap reconnect
diff -Naur python-ldap-2.3.10.orig/Lib/ldap/ldapobject.py python-ldap-2.3.10/Lib/ldap/ldapobject.py
--- python-ldap-2.3.10.orig/Lib/ldap/ldapobject.py 2010-02-05 18:27:21.502050875 +0000
+++ python-ldap-2.3.10/Lib/ldap/ldapobject.py 2010-02-05 18:28:28.518334969 +0000
@@ -783,6 +783,8 @@
del self._l
# Try to reconnect
self.reconnect(self._uri)
+ # Hide the error
+ pass
# Re-try last operation
return func(self,*args,**kwargs)