From 6d5003686044a71178f64f207d38d73183f87afc Mon Sep 17 00:00:00 2001 From: syntron Date: Wed, 4 Jun 2025 21:01:50 +0200 Subject: [PATCH] [ModelicaSystemCmd] add another missing raise --- OMPython/ModelicaSystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMPython/ModelicaSystem.py b/OMPython/ModelicaSystem.py index a84d2f5b6..e362520a3 100644 --- a/OMPython/ModelicaSystem.py +++ b/OMPython/ModelicaSystem.py @@ -233,7 +233,7 @@ def run(self) -> int: # set the process environment from the generated .bat file in windows which should have all the dependencies path_bat = self._runpath / f"{self._modelname}.bat" if not path_bat.exists(): - ModelicaSystemError("Batch file (*.bat) does not exist " + str(path_bat)) + raise ModelicaSystemError("Batch file (*.bat) does not exist " + str(path_bat)) with open(path_bat, 'r') as file: for line in file: