From 12dc5b82cc87ff15e25d37ee598d8eb7738b306f Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Thu, 15 Jun 2023 23:09:05 -0700 Subject: protecting against blank outputs --- continuedev/src/continuedev/steps/core/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py index 687d4eb0..b4456122 100644 --- a/continuedev/src/continuedev/steps/core/core.py +++ b/continuedev/src/continuedev/steps/core/core.py @@ -344,6 +344,7 @@ def get_python_traceback(output: str) -> str: def get_javascript_traceback(output: str) -> str: lines = output.splitlines("\n") - first_line = lines[0].split(": ") - if len(lines) > 0 and len(first_line[0]) > 0 and "at" in lines[1].lstrip(): + if len(lines) == 0: + first_line = lines[0].split(": ") + if len(lines) > 1 and len(first_line) > 0 and len(first_line[0]) > 0 and "at" in lines[1].lstrip(): return output \ No newline at end of file -- cgit v1.2.3-70-g09d2