from fb_tools.errors import FbError
from fb_tools.obj import FbBaseObject
-__version__ = '0.1.2'
+__version__ = '0.1.3'
LOG = logging.getLogger(__name__)
def __str__(self):
msg = "Key {!r} not existing in CaseInsensitiveDict."
- return msg.format(key)
+ return msg.format(self.key)
# =============================================================================
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)