From 3a754f24cd4df597a3d0268d0064b3fc1a5ad16b Mon Sep 17 00:00:00 2001 From: Michael Wetter Date: Wed, 2 Feb 2022 07:57:44 -0800 Subject: [PATCH] Corrected test if simulation was not performed --- buildingspy/development/regressiontest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildingspy/development/regressiontest.py b/buildingspy/development/regressiontest.py index 8651d11b..6a50ebc2 100644 --- a/buildingspy/development/regressiontest.py +++ b/buildingspy/development/regressiontest.py @@ -2685,8 +2685,9 @@ def _checkReferencePoints(self, ans): self._isPresentAndTrue('exportFMU', data[self._modelica_tool])) # Only if the simulation was successful are we reading the results. # (Simulation errors are reported earlier already.) - if 'simulation' in data[self._modelica_tool]: - check_condition = check_condition and data[self._modelica_tool]['simulation']['success'] + check_condition = check_condition and \ + 'simulation' in data[self._modelica_tool] and \ + data[self._modelica_tool]['simulation']['success'] if check_condition: get_user_prompt = True