summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-06-15 23:09:05 -0700
committerTy Dunn <ty@tydunn.com>2023-06-15 23:09:05 -0700
commit3dae06931b13133a23276ce44db9c9f70153dc29 (patch)
treef878226010c8b826c457041fd121082900a33aee
parent0469a72530c6c9bb080fd922db1295ff0643306c (diff)
downloadsncontinue-3dae06931b13133a23276ce44db9c9f70153dc29.tar.gz
sncontinue-3dae06931b13133a23276ce44db9c9f70153dc29.tar.bz2
sncontinue-3dae06931b13133a23276ce44db9c9f70153dc29.zip
protecting against blank outputs
-rw-r--r--continuedev/src/continuedev/steps/core/core.py5
1 files 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