diff options
| author | avi robusta <avi@robusta.dev> | 2023-05-16 10:15:42 +0300 |
|---|---|---|
| committer | avi robusta <avi@robusta.dev> | 2023-05-16 13:21:17 +0300 |
| commit | 4e8d9817cd153a29b0c78e02c5abaa9712707a1c (patch) | |
| tree | 48a3903d04d9ad9d5e479044e9557a4642e2662d | |
| parent | b0d0f9b96ecc1a494ed0270bdccc8acba0575d93 (diff) | |
limit frames for exception print
| -rw-r--r-- | robusta_krr/core/runner.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/robusta_krr/core/runner.py b/robusta_krr/core/runner.py index 1c67a29..7ba1d72 100644 --- a/robusta_krr/core/runner.py +++ b/robusta_krr/core/runner.py @@ -149,5 +149,8 @@ class Runner(Configurable): async def run(self) -> None: self._greet() - result = await self._collect_result() - self._process_result(result) + try: + result = await self._collect_result() + self._process_result(result) + except Exception: + self.console.print_exception(extra_lines=1, max_frames=10) |
