Skip to content

Commit 0c8a808

Browse files
fix: remove REDIS env from sandbox.
1 parent c46c631 commit 0c8a808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/utils/function_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def exec_code(self, code_str, keywords):
5151
import os
5252
env = dict(os.environ)
5353
for key in list(env.keys()):
54-
if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG')):
54+
if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG') or key.startswith('REDIS')):
5555
del os.environ[key]
5656
locals_v={'{}'}
5757
keywords={keywords}

0 commit comments

Comments
 (0)