From d415d0e0502c1255a9e7338bc7fb5b24742b0f01 Mon Sep 17 00:00:00 2001 From: jrudz Date: Mon, 26 Feb 2024 15:55:47 +0100 Subject: [PATCH] added check for when free_energies dict is None --- atomisticparsers/gromacs/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomisticparsers/gromacs/parser.py b/atomisticparsers/gromacs/parser.py index cb5a070c..8831ad9e 100644 --- a/atomisticparsers/gromacs/parser.py +++ b/atomisticparsers/gromacs/parser.py @@ -1475,7 +1475,7 @@ def parse_workflow(self): self.xvg_parser.mainfile = self.get_gromacs_file("xvg") free_energies = self.xvg_parser.get("results") - title = free_energies.get("title", "") + title = free_energies.get("title", "") if free_energies is not None else "" flag_FE = False if r"dH/d\xl\f{}" in title and r"\xD\f{}H" in title: flag_FE = True