mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: avoid using temp files in sandbox.
This commit is contained in:
parent
e939c6e85a
commit
dec1431560
|
|
@ -86,8 +86,10 @@ try:
|
|||
for local in locals_v:
|
||||
globals_v[local] = locals_v[local]
|
||||
exec_result=f(**keywords)
|
||||
print("-\n-\n-")
|
||||
print("{_id}:" + base64.b64encode(json.dumps({success}, default=str).encode()).decode())
|
||||
except Exception as e:
|
||||
print("-\n-\n-")
|
||||
print("{_id}:" + base64.b64encode(json.dumps({err}, default=str).encode()).decode())
|
||||
"""
|
||||
if self.sandbox:
|
||||
|
|
|
|||
Loading…
Reference in New Issue