Merge pull request #720 from supreme0597/fix/sandbox-editor-file
fix: 修复 sandbox backend edit 方法错误访问 result.data.success
This commit is contained in:
commit
29d5da0bd9
@ -293,8 +293,8 @@ class ProvisionerSandboxBackend(BaseSandbox):
|
||||
new_str=new_string,
|
||||
replace_mode=replace_mode,
|
||||
)
|
||||
if not result.data.success:
|
||||
return EditResult(error=result.data.message or f"Error editing file '{file_path}'")
|
||||
if not result.success:
|
||||
return EditResult(error=result.message or f"Error editing file '{file_path}'")
|
||||
except Exception as exc: # noqa: BLE001
|
||||
return EditResult(error=f"Error editing file: {exc}")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user