Skip to content

Commit

Permalink
avoid calling fix_subdoc twice (only in include_docx_template)
Browse files Browse the repository at this point in the history
  • Loading branch information
staffanm-kp committed Feb 3, 2025
1 parent d198d34 commit 9cafb28
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docassemble_base/docassemble/base/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -7147,8 +7147,6 @@ def finalize_attachment(self, attachment, result, the_user_dict):
# Copy over images, etc from subdoc to master template
subdocs = docassemble.base.functions.this_thread.misc.get('docx_subdocs', []) # Get the subdoc file list
the_template_docx = the_template.docx
for subdoc in subdocs:
docassemble.base.file_docx.fix_subdoc(the_template_docx, subdoc)

except TemplateError as the_error:
if (not hasattr(the_error, 'filename')) or the_error.filename is None:
Expand Down

0 comments on commit 9cafb28

Please sign in to comment.