diff options
| -rw-r--r-- | continuedev/src/continuedev/steps/core/core.py | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py index b4456122..af3c6cc2 100644 --- a/continuedev/src/continuedev/steps/core/core.py +++ b/continuedev/src/continuedev/steps/core/core.py @@ -344,7 +344,9 @@ def get_python_traceback(output: str) -> str:  def get_javascript_traceback(output: str) -> str:      lines = output.splitlines("\n") -    if len(lines) == 0: +    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 +        if len(lines) > 1 and len(first_line) > 0 and len(first_line[0]) > 0 and "at" in lines[1].lstrip(): +            return output +    else: +        return None
\ No newline at end of file | 
