fix: remove REDIS env from sandbox.

This commit is contained in:
liqiang-fit2cloud 2025-06-20 16:29:04 +08:00
parent c46c631d52
commit 0c8a80897b

View File

@ -51,7 +51,7 @@ try:
import os
env = dict(os.environ)
for key in list(env.keys()):
if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG')):
if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG') or key.startswith('REDIS')):
del os.environ[key]
locals_v={'{}'}
keywords={keywords}