# HG changeset patch # User Ludovic Chabant # Date 1497331806 25200 # Node ID 48d25fd68b8d56aee432d37b7dcc5c86bd7f13b2 # Parent 41b0c94f9833009d9cfea8d6cc894ceba03444a2 assets: Fix bug in assetor. diff -r 41b0c94f9833 -r 48d25fd68b8d piecrust/data/assetor.py --- a/piecrust/data/assetor.py Mon Jun 12 22:22:42 2017 -0700 +++ b/piecrust/data/assetor.py Mon Jun 12 22:30:06 2017 -0700 @@ -35,7 +35,7 @@ def __getattr__(self, name): try: self._cacheAssets() - return self._cache[name].uri + return self._cache_map[name].uri except KeyError: raise AttributeError() @@ -49,7 +49,7 @@ def _debugRenderAssetNames(self): self._cacheAssets() - return list(self._cache.keys()) + return list(self._cache_map.keys()) def _cacheAssets(self): if self._cache_map is not None: