Mercurial > piecrust2
diff piecrust/data/assetor.py @ 1148:0aeb6f18d6a0
bake: Don't crash if a source doesn't implement related items.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 10 Jul 2018 21:01:45 -0700 |
parents | 29c51b981c17 |
children |
line wrap: on
line diff
--- a/piecrust/data/assetor.py Tue Jun 05 22:20:45 2018 -0700 +++ b/piecrust/data/assetor.py Tue Jul 10 21:01:45 2018 -0700 @@ -78,7 +78,10 @@ source = self._page.source content_item = self._page.content_item - assets = source.getRelatedContents(content_item, REL_ASSETS) + try: + assets = source.getRelatedContents(content_item, REL_ASSETS) + except NotImplementedError: + assets = None self._cache_map = {} self._cache_list = []