comparison piecrust/data/provider.py @ 557:703ea5d76f33

serve: Don't crash when looking at the debug info in a stand-alone window.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 12 Aug 2015 23:20:16 -0700
parents 32c7c2d219d2
children ab5c6a8ae90a
comparison
equal deleted inserted replaced
556:93b656f0af54 557:703ea5d76f33
176 return self._taxonomies[tax_name] 176 return self._taxonomies[tax_name]
177 177
178 def _onIteration(self): 178 def _onIteration(self):
179 if not self._ctx_set: 179 if not self._ctx_set:
180 eis = self._page.app.env.exec_info_stack 180 eis = self._page.app.env.exec_info_stack
181 eis.current_page_info.render_ctx.addUsedSource(self._source) 181 if eis.current_page_info:
182 eis.current_page_info.render_ctx.addUsedSource(self._source)
182 self._ctx_set = True 183 self._ctx_set = True
183 184
184 185
185 class BlogArchiveEntry(object): 186 class BlogArchiveEntry(object):
186 def __init__(self, page, name, timestamp): 187 def __init__(self, page, name, timestamp):