1960945 Turn the LDAPError handler into a context manager

2 files Authored by pviktori 11 years ago, Committed by mkosek 11 years ago,
    Turn the LDAPError handler into a context manager
    
    This has the advantage that the traceback is left intact if an error
    other than LDAPError is raised.
    
    Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
    
        
file modified
+41 -59
file modified
+4 -13