Permalink
Browse files

Convert types to strings, in case they look like numbers.

Fixes #73.
  • Loading branch information...
1 parent 25d24ba commit 1f51fd4737a25d186ecad70850be49390af5260f @mythmon committed May 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wok/page.py
View
@@ -262,7 +262,7 @@ def build_meta(self):
# template
try:
- template_type = self.meta.get('type', 'default')
+ template_type = str(self.meta.get('type', 'default'))
self.template = Page.tmpl_env.get_template(template_type + '.*')
except jinja2.loaders.TemplateNotFound:
logging.error('No template "{0}.*" found in template directory. Aborting.'

0 comments on commit 1f51fd4

Please sign in to comment.