Skip to content

Commit b16c9d3

Browse files
syntronadeas31
andauthored
[ModelicaSystemCmd] add another missing raise (#296)
Co-authored-by: Adeel Asghar <[email protected]>
1 parent 3fbe9ae commit b16c9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)