KCC: Correct capitalisation of KCCError
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 22 Jun 2015 04:38:29 +0000 (16:38 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Oct 2015 04:08:16 +0000 (05:08 +0100)
previously we had "raise KccError", which of course would raise a
NameError.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/kcc/kcc_utils.py

index a430366bc68386025073408571ad58d452e6c213..dddc487188c07e722afb44b484d0c9772ce4521b 100644 (file)
@@ -1047,7 +1047,7 @@ class NTDSConnection(object):
             if enum == ldb.ERR_NO_SUCH_OBJECT:
                 raise KCCError("nTDSConnection for (%s) doesn't exist!" %
                                self.dnstr)
-            raise KccError("Unable to search for (%s) - (%s)" %
+            raise KCCError("Unable to search for (%s) - (%s)" %
                            (self.dnstr, estr))
 
         if self.enabled: