Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix deletion of bf.template_context

  • Loading branch information...
commit 94eb28b367cfa328d135d7a737a54a52d792e3bb 1 parent 34c7c81
@EnigmaCurry authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  blogofile/writer.py
View
3  blogofile/writer.py
@@ -155,7 +155,8 @@ def template_render(self, template, attrs={}):
except: #pragma: no cover
logger.error("Error rendering template")
print(mako_exceptions.text_error_template().render())
- del self.bf.template_context
+ finally:
+ del self.bf.template_context
def materialize_template(self, template_name, location, attrs={}, lookup=None):
"""Render a named template with attrs to a location in the _site dir"""
Please sign in to comment.
Something went wrong with that request. Please try again.