diff --git a/CHANGES.rst b/CHANGES.rst index 513eddb..5626c55 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,4 +1,4 @@ -0.14.0 (2021-09-30) +0.14.1 (2021-10-01) ------------------- - One can now use python -m docxtpl on command line to generate a docx from a template and a json file as a context diff --git a/docxtpl/__init__.py b/docxtpl/__init__.py index 563b398..445b3f6 100644 --- a/docxtpl/__init__.py +++ b/docxtpl/__init__.py @@ -4,7 +4,7 @@ Created : 2015-03-12 @author: Eric Lapouyade """ -__version__ = '0.14.0' +__version__ = '0.14.1' # flake8: noqa from .inline_image import InlineImage diff --git a/docxtpl/__main__.py b/docxtpl/__main__.py index bf2604a..5fc20e9 100644 --- a/docxtpl/__main__.py +++ b/docxtpl/__main__.py @@ -118,7 +118,7 @@ def render_docx(doc, json_data): raise RuntimeError('An error ocurred while trying to render the docx') -def save_file(doc: DocxTemplate, parsed_args: dict) -> None: +def save_file(doc, parsed_args): try: output_path = parsed_args[OUTPUT_ARG] doc.save(output_path)