Skip to content

Commit

Permalink
Tiny changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Jun 5, 2024
1 parent 814a62e commit 7225b0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion finalcif/report/templated_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ def reference_html(self, ref: Reference):

def make_templated_docx_report(self,
output_filename: str,
picfile: Path,
picfile: Path | None,
template_path: Path) -> bool:
tpl_doc = DocxTemplate(template_path)
context, tpl_doc = self.prepare_report_data(self.cif, self.options, picfile, tpl_doc)
Expand All @@ -925,6 +925,7 @@ def make_templated_docx_report(self,
except Exception as e:
show_general_warning(parent=None, window_title='Warning', warn_text='Document generation failed',
info_text=str(e))
print(e)
return False

def make_templated_html_report(self,
Expand Down

0 comments on commit 7225b0e

Please sign in to comment.