]> Frank Brehm's Git Trees - pixelpark/ldap-migration.git/commitdiff
Bugfixing lib/ldap_migration/idict.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 16 Nov 2020 15:28:01 +0000 (16:28 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 16 Nov 2020 15:28:01 +0000 (16:28 +0100)
lib/ldap_migration/idict.py

index 114c1d0f127487bfcfa42e4a38800929c35d7f1b..17679b2f92df9df6d4ac827e02629afde093da86 100644 (file)
@@ -24,7 +24,7 @@ from fb_tools.common import pp
 from fb_tools.errors import FbError
 from fb_tools.obj import FbBaseObject
 
-__version__ = '0.1.2'
+__version__ = '0.1.3'
 
 LOG = logging.getLogger(__name__)
 
@@ -71,7 +71,7 @@ class CaseInsensitiveKeyError(KeyError, FbError):
     def __str__(self):
 
         msg = "Key {!r} not existing in CaseInsensitiveDict."
-        return msg.format(key)
+        return msg.format(self.key)
 
 
 # =============================================================================
@@ -312,7 +312,7 @@ class CaseInsensitiveDict(MutableMapping):
         res = {}
         for key in self._map.keys():
             value = self._map[key]
-            if isinstance(value, [FbBaseObject, CaseInsensitiveDict]):
+            if isinstance(value, (FbBaseObject, CaseInsensitiveDict)):
                 res[key] = value.as_dict(short=short)
             else:
                 res[key] = copy.copy(value)