From a42598fcdd78281bd40affd62eef1a79a34963e8 Mon Sep 17 00:00:00 2001 From: Colton Hicks Date: Wed, 16 Oct 2024 13:39:08 -0700 Subject: [PATCH] Display empty string if no model on DualProgramInput. --- qcio/view.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcio/view.py b/qcio/view.py index 35db92c..29d261f 100644 --- a/qcio/view.py +++ b/qcio/view.py @@ -408,7 +408,9 @@ def generate_output_table(*prog_outputs: ProgramOutput) -> str: else "No timing data"} {po.input_data.calctype.name} {f"{po.provenance.program} {po.provenance.program_version or ''}"} - {generate_dictionary_string(po.input_data.model.model_dump(exclude=["extras"]))} + {generate_dictionary_string( + po.input_data.model.model_dump(exclude=["extras"]) + ) if po.input_data.model else ""} {generate_dictionary_string(po.input_data.keywords)} """ if po.input_data.files: