summaryrefslogtreecommitdiff
path: root/jtlib/plugins/new_person_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'jtlib/plugins/new_person_plugin.py')
-rw-r--r--jtlib/plugins/new_person_plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/jtlib/plugins/new_person_plugin.py b/jtlib/plugins/new_person_plugin.py
index a7cc76a..905252a 100644
--- a/jtlib/plugins/new_person_plugin.py
+++ b/jtlib/plugins/new_person_plugin.py
@@ -58,5 +58,6 @@ class NewPersonCommand(cliapp.Plugin):
'basename': basename,
}
rendered_template = self.app.render_template('new_person.j2', vars)
+ assert type(rendered_template) == unicode
with open(pathname, 'w') as f:
- f.write(rendered_template)
+ f.write(rendered_template.encode('utf8'))