Rename key

This commit is contained in:
Nitin Madhok 2015-04-20 16:54:42 -04:00
parent 5b6f2995eb
commit 1f703ef548

View File

@ -104,8 +104,8 @@ class LazyDict(collections.MutableMapping):
log.debug('LazyLoaded {0}'.format(name))
return self._dict[name]
else:
log.debug('Could not LazyLoad {0}'.format(key))
raise KeyError(key)
log.debug('Could not LazyLoad {0}'.format(name))
raise KeyError(name)
elif name in self:
return self[name]
raise AttributeError(name)