summaryrefslogtreecommitdiff
path: root/continuedev
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-06-15 23:10:10 -0700
committerTy Dunn <ty@tydunn.com>2023-06-15 23:10:10 -0700
commitd6432ea58f2400875745fd7d2b5f4c62f1073786 (patch)
tree30958fa2cb62a6b522404e1a728e9ea655075585 /continuedev
parent12dc5b82cc87ff15e25d37ee598d8eb7738b306f (diff)
downloadsncontinue-d6432ea58f2400875745fd7d2b5f4c62f1073786.tar.gz
sncontinue-d6432ea58f2400875745fd7d2b5f4c62f1073786.tar.bz2
sncontinue-d6432ea58f2400875745fd7d2b5f4c62f1073786.zip
returning None in js
Diffstat (limited to 'continuedev')
-rw-r--r--continuedev/src/continuedev/steps/core/core.py8
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