Skip to content

Commit e07a1c1

Browse files
committed
[ModelicaSystemCmd] add another missing raise
1 parent c912116 commit e07a1c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def run(self) -> int:
233233
# set the process environment from the generated .bat file in windows which should have all the dependencies
234234
path_bat = self._runpath / f"{self._modelname}.bat"
235235
if not path_bat.exists():
236-
ModelicaSystemError("Batch file (*.bat) does not exist " + str(path_bat))
236+
raise ModelicaSystemError("Batch file (*.bat) does not exist " + str(path_bat))
237237

238238
with open(path_bat, 'r') as file:
239239
for line in file:

0 commit comments

Comments
 (0)