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 19c3979 commit 665e5b5Copy full SHA for 665e5b5
OMPython/ModelicaSystem.py
@@ -2144,9 +2144,9 @@ def worker(worker_id, task_queue):
2144
try:
2145
returncode = self.get_session().run_model_executable(cmd_run_data=cmd_definition)
2146
logger.info(f"[Worker {worker_id}] Simulation {resultpath.name} "
2147
- f"finished with return code: {returncode}")
2148
- except ModelicaSystemError as ex:
2149
- logger.warning(f"Simulation error for {resultpath.name}: {ex}")
+ f"finished with return code {returncode}")
+ except OMCSessionException as ex:
+ logger.warning(f"Error executing {repr(cmd_definition.get_cmd())}: {ex}")
2150
2151
# Mark the task as done
2152
task_queue.task_done()
0 commit comments