diff options
author | Ty Dunn <ty@tydunn.com> | 2023-06-15 23:10:10 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-06-15 23:10:10 -0700 |
commit | 87477d87a1d41b1fbb043ed1c112c2dc63087bea (patch) | |
tree | 58829b08349c759464942abfdd7bace61ac6e4bd /continuedev/src | |
parent | 3dae06931b13133a23276ce44db9c9f70153dc29 (diff) | |
download | sncontinue-87477d87a1d41b1fbb043ed1c112c2dc63087bea.tar.gz sncontinue-87477d87a1d41b1fbb043ed1c112c2dc63087bea.tar.bz2 sncontinue-87477d87a1d41b1fbb043ed1c112c2dc63087bea.zip |
returning None in js
Diffstat (limited to 'continuedev/src')
-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 |