diff --git a/python/scenario/scenario_executor.py b/python/scenario/scenario_executor.py index 0cd7d34a3..7190cbd24 100644 --- a/python/scenario/scenario_executor.py +++ b/python/scenario/scenario_executor.py @@ -896,7 +896,8 @@ async def _call_agent( return messages except Exception as e: agent_name = agent.__class__.__name__ - raise RuntimeError(f"[{agent_name}] {e}") from e + msg = str(e) if str(e) else f"<{e.__class__.__name__}: no message>" + raise RuntimeError(f"[{agent_name}] {msg}") from e def _scenario_name(self): if self.config.verbose == 2: