mirror of
https://github.com/oneclickvirt/backtrace.git
synced 2026-11-24 23:39:41 +08:00
feat: add maintained Skill and MCP integration [skip ci]
This commit is contained in:
1 parent
6498f8ad0f
commit
3cde5070f1
5 files changed
+17
-7
No files matched your search
+1
-1
@@ -80,7 +80,7 @@ def execute(argv, timeout=30, cwd=None, parse_json=True):
|
||||
stdout, stderr = out.read(LIMIT + 1), err.read(16385)
|
||||
if proc.returncode:
|
||||
raise ValueError("Command failed (exit %s): %s" % (
|
||||
proc.returncode, stderr[:16384].decode("utf-8", "replace")))
|
||||
proc.returncode, (stderr[:16384] or stdout[:16384]).decode("utf-8", "replace")))
|
||||
if len(stdout) > LIMIT:
|
||||
raise ValueError("Command result exceeds 1 MiB; narrow the request")
|
||||
text = stdout.decode("utf-8", "replace").strip()
|
||||
|
||||
Reference in new issue
Block a user