mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 03:58:32 +02:00
Fix #456 - make argument a string.
This commit is contained in:
parent
2031902f1c
commit
32bc11cfff
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def __exporter_from_file(template_file):
|
|||
"""Create a template class from a file"""
|
||||
name = os.path.basename(template_file).replace(".template", "")
|
||||
template = Template.from_file(template_file)
|
||||
return type("{}Exporter".format(name.title()), (GenericTemplateExporter, ), {
|
||||
return type(str("{}Exporter".format(name.title())), (GenericTemplateExporter, ), {
|
||||
"names": [name],
|
||||
"extension": template.extension,
|
||||
"template": template
|
||||
|
|
Loading…
Add table
Reference in a new issue