diff options
author | Ty Dunn <ty@tydunn.com> | 2023-06-15 16:11:50 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-06-15 16:11:50 -0700 |
commit | 7cdebb6a843dafd4fac8afd9bbd2362ab1a6aeae (patch) | |
tree | 1883a479b32a08790eb02c863820d8824ad687ca | |
parent | cfd5227274048a372d134aa8d1f1826a0d3d8fff (diff) | |
download | sncontinue-7cdebb6a843dafd4fac8afd9bbd2362ab1a6aeae.tar.gz sncontinue-7cdebb6a843dafd4fac8afd9bbd2362ab1a6aeae.tar.bz2 sncontinue-7cdebb6a843dafd4fac8afd9bbd2362ab1a6aeae.zip |
first direction
-rw-r--r-- | continuedev/src/continuedev/steps/core/core.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py index aee5bc1d..d4f5aa2e 100644 --- a/continuedev/src/continuedev/steps/core/core.py +++ b/continuedev/src/continuedev/steps/core/core.py @@ -334,3 +334,16 @@ class WaitForUserConfirmationStep(Step): self.description = self.prompt resp = await sdk.wait_for_user_input() return TextObservation(text=resp) + + +def get_python_traceback(output: str) -> str: + if "Traceback" in output: + return output[output.index("Traceback"):] + else: + return None + +def get_javascript_traceback(output: str) -> str: + if "at " in output: + return output[output.index("at "):] + else: + return None
\ No newline at end of file |