# HG changeset patch # User Ludovic Chabant # Date 1508227736 25200 # Node ID a0a62d0da7237363d2806f2fd361401c52c5d867 # Parent 72f17534d58ed60c7c8f96040898b95a8b859c21 internal: Check that the `Assetor` has an asset URL format to work with. diff -r 72f17534d58e -r a0a62d0da723 piecrust/data/assetor.py --- a/piecrust/data/assetor.py Tue Oct 17 01:07:30 2017 -0700 +++ b/piecrust/data/assetor.py Tue Oct 17 01:08:56 2017 -0700 @@ -81,6 +81,8 @@ app = source.app root_dir = app.root_dir asset_url_format = app.config.get('site/asset_url_format') + if not asset_url_format: + raise Exception("No asset URL format was specified.") page_uri = self._page.getUri() pretty_urls = app.config.get('site/pretty_urls')