We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02d506 commit 59d11c2Copy full SHA for 59d11c2
OMPython/ModelicaSystem.py
@@ -259,7 +259,7 @@ def run(self) -> int:
259
raise ModelicaSystemError(f"Error running command {repr(cmdl)}: {stderr}")
260
except subprocess.TimeoutExpired:
261
raise ModelicaSystemError(f"Timeout running command {repr(cmdl)}")
262
- except Exception as ex:
+ except subprocess.CalledProcessError as ex:
263
raise ModelicaSystemError(f"Error running command {repr(cmdl)}") from ex
264
265
return returncode
0 commit comments